about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2015-11-28 19:27:17 +0100
committerDomen Kožar <domen@dev.si>2015-11-28 19:27:17 +0100
commit1479f2cc3a50e5500f77cc7f15fbc88902d9b4c5 (patch)
treed62d0e2594e24794ab69050223c009861ba5cbce /pkgs
parentf93ee4ba3e6a870ba3202eab1a0278b9d10aa1c1 (diff)
parenta2c3c171e930b9421ed4dfc1c4ebc03e21925ad3 (diff)
Merge pull request #11286 from matthiasbeyer/add-weather
weather: init at 2.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/weather/default.nix30
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 32 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
+    };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a78e37143aa8d..c7337e8a2713e 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3363,6 +3363,8 @@ let
 
   vtun = callPackage ../tools/networking/vtun { };
 
+  weather = callPackage ../applications/misc/weather { };
+
   wal_e = callPackage ../tools/backup/wal-e { };
 
   watchman = callPackage ../development/tools/watchman { };