about summary refs log tree commit diff
path: root/pkgs/applications/misc/weather/default.nix
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-11-26 17:28:38 +0100
committerMatthias Beyer <mail@beyermatthias.de>2015-11-27 11:47:51 +0100
commita2c3c171e930b9421ed4dfc1c4ebc03e21925ad3 (patch)
treed408833d3f9fc16239e109d66176d0bea5f7a229 /pkgs/applications/misc/weather/default.nix
parent70d7cfdb8c4bb970daff73418389d7dbadf69005 (diff)
weather: init at 2.0
Diffstat (limited to 'pkgs/applications/misc/weather/default.nix')
-rw-r--r--pkgs/applications/misc/weather/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/misc/weather/default.nix b/pkgs/applications/misc/weather/default.nix
new file mode 100644
index 0000000000000..dec18aea961d5
--- /dev/null
+++ b/pkgs/applications/misc/weather/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, pkgs }:
+
+stdenv.mkDerivation rec {
+    version = "2.0";
+    name = "weather-${version}";
+
+    src = fetchurl {
+        url = "http://fungi.yuggoth.org/weather/src/${name}.tar.xz";
+        sha256 = "0yil363y9iyr4mkd7xxq0p2260wh50f9i5p0map83k9i5l0gyyl0";
+    };
+
+    phases = [ "unpackPhase" "installPhase" ];
+
+    installPhase = ''
+        mkdir $out/{share,man,bin} -p
+        cp weather{,.py} $out/bin/
+        cp {airports,overrides.{conf,log},places,slist,stations,weatherrc,zctas,zlist,zones} $out/share/
+        chmod +x $out/bin/weather
+        cp ./weather.1 $out/man/
+        cp ./weatherrc.5 $out/man/
+    '';
+
+    meta = {
+        homepage = "http://fungi.yuggoth.org/weather";
+        description = "Quick access to current weather conditions and forecasts";
+        license = stdenv.lib.licenses.isc;
+        maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
+        platforms = with stdenv.lib.platforms; linux; # my only platform
+    };
+}