about summary refs log tree commit diff
path: root/pkgs/servers/consul/ui.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/consul/ui.nix')
-rw-r--r--pkgs/servers/consul/ui.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/servers/consul/ui.nix b/pkgs/servers/consul/ui.nix
index 68e12ab1cfed..d1c04f959cb8 100644
--- a/pkgs/servers/consul/ui.nix
+++ b/pkgs/servers/consul/ui.nix
@@ -1,11 +1,7 @@
 { stdenv, fetchzip }:
 
-let version = "0.3.0";
-in fetchzip {
-  name = "consul-ui-${version}";
-  url = "https://dl.bintray.com/mitchellh/consul/${version}_web_ui.zip";
-  sha256 = "0p4mhlrqidd6p3899wd3i9p41bdbb5avbz5986mnxg9f7dvhjdrc";
-
+let
+  version = "0.3.0";
   meta = with stdenv.lib; {
     homepage = http://www.consul.io/intro/getting-started/ui.html;
     description = "The static files for Consul's UI (used via -ui-dir)";
@@ -13,4 +9,9 @@ in fetchzip {
     license = licenses.mpl20 ;
     platforms = platforms.all;
   };
-}
+in (fetchzip {
+  name = "consul-ui-${version}";
+  url = "https://dl.bintray.com/mitchellh/consul/${version}_web_ui.zip";
+  sha256 = "0p4mhlrqidd6p3899wd3i9p41bdbb5avbz5986mnxg9f7dvhjdrc";
+}) // { inherit meta; }
+