summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2020-09-22 06:50:04 +0200
committerDaniël de Kok <me@danieldk.eu>2020-09-22 06:50:04 +0200
commit271b9ac9a794198dbdc40f2f6739b880239ae3b6 (patch)
treee7435a96811191d2e9149e1bd5b625916ebb4c17 /pkgs/applications/misc
parent748aa38cb19d8b1b03fbb3bc12ffb444249d6cdb (diff)
downloadnixpkgs-271b9ac9a794198dbdc40f2f6739b880239ae3b6.tar
nixpkgs-271b9ac9a794198dbdc40f2f6739b880239ae3b6.tar.gz
nixpkgs-271b9ac9a794198dbdc40f2f6739b880239ae3b6.tar.bz2
nixpkgs-271b9ac9a794198dbdc40f2f6739b880239ae3b6.tar.lz
nixpkgs-271b9ac9a794198dbdc40f2f6739b880239ae3b6.tar.xz
nixpkgs-271b9ac9a794198dbdc40f2f6739b880239ae3b6.tar.zst
nixpkgs-271b9ac9a794198dbdc40f2f6739b880239ae3b6.zip
weather: reformat derivation
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/weather/default.nix62
1 files changed, 31 insertions, 31 deletions
diff --git a/pkgs/applications/misc/weather/default.nix b/pkgs/applications/misc/weather/default.nix
index fdfed065321..69a32430f96 100644
--- a/pkgs/applications/misc/weather/default.nix
+++ b/pkgs/applications/misc/weather/default.nix
@@ -1,41 +1,41 @@
 { stdenv, fetchurl, pythonPackages }:
 
 stdenv.mkDerivation rec {
-    version = "2.4.1";
-    pname = "weather";
+  version = "2.4.1";
+  pname = "weather";
 
-    src = fetchurl {
-        url = "http://fungi.yuggoth.org/weather/src/${pname}-${version}.tar.xz";
-        sha256 = "0nf680dl7a2vlgavdhj6ljq8a7lkhvr6zghkpzad53vmilxsndys";
-    };
+  src = fetchurl {
+    url = "http://fungi.yuggoth.org/weather/src/${pname}-${version}.tar.xz";
+    sha256 = "0nf680dl7a2vlgavdhj6ljq8a7lkhvr6zghkpzad53vmilxsndys";
+  };
 
-    nativeBuildInputs = [ pythonPackages.wrapPython ];
+  nativeBuildInputs = [ pythonPackages.wrapPython ];
 
-    buildInputs = [ pythonPackages.python ];
+  buildInputs = [ pythonPackages.python ];
 
-    phases = [ "unpackPhase" "installPhase" ];
+  phases = [ "unpackPhase" "installPhase" ];
 
-    installPhase = ''
-        site_packages=$out/${pythonPackages.python.sitePackages}
-        mkdir -p $out/{share/{man,weather-util},bin,etc} $site_packages
-        cp weather $out/bin/
-        cp weather.py $site_packages/
-        chmod +x $out/bin/weather
-        cp airports overrides.{conf,log} places slist stations zctas zlist zones $out/share/weather-util/
-        cp weatherrc $out/etc
-        cp weather.1 weatherrc.5 $out/share/man/
-        sed -i \
-          -e "s|/etc|$out/etc|g" \
-          -e "s|else: default_setpath = \".:~/.weather|&:$out/share/weather-util|" \
-          $site_packages/weather.py
-        wrapPythonPrograms
-    '';
+  installPhase = ''
+    site_packages=$out/${pythonPackages.python.sitePackages}
+    mkdir -p $out/{share/{man,weather-util},bin,etc} $site_packages
+    cp weather $out/bin/
+    cp weather.py $site_packages/
+    chmod +x $out/bin/weather
+    cp airports overrides.{conf,log} places slist stations zctas zlist zones $out/share/weather-util/
+    cp weatherrc $out/etc
+    cp weather.1 weatherrc.5 $out/share/man/
+    sed -i \
+      -e "s|/etc|$out/etc|g" \
+      -e "s|else: default_setpath = \".:~/.weather|&:$out/share/weather-util|" \
+      $site_packages/weather.py
+    wrapPythonPrograms
+  '';
 
-    meta = with stdenv.lib; {
-        homepage = "http://fungi.yuggoth.org/weather";
-        description = "Quick access to current weather conditions and forecasts";
-        license = licenses.isc;
-        maintainers = [ maintainers.matthiasbeyer ];
-        platforms = platforms.linux ++ platforms.darwin;
-    };
+  meta = with stdenv.lib; {
+    homepage = "http://fungi.yuggoth.org/weather";
+    description = "Quick access to current weather conditions and forecasts";
+    license = licenses.isc;
+    maintainers = [ maintainers.matthiasbeyer ];
+    platforms = platforms.linux ++ platforms.darwin;
+  };
 }