Merge pull request #11286 from matthiasbeyer/add-weather
weather: init at 2.0
This commit is contained in:
commit
1479f2cc3a
30
pkgs/applications/misc/weather/default.nix
Normal file
30
pkgs/applications/misc/weather/default.nix
Normal file
@ -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
|
||||||
|
};
|
||||||
|
}
|
@ -3363,6 +3363,8 @@ let
|
|||||||
|
|
||||||
vtun = callPackage ../tools/networking/vtun { };
|
vtun = callPackage ../tools/networking/vtun { };
|
||||||
|
|
||||||
|
weather = callPackage ../applications/misc/weather { };
|
||||||
|
|
||||||
wal_e = callPackage ../tools/backup/wal-e { };
|
wal_e = callPackage ../tools/backup/wal-e { };
|
||||||
|
|
||||||
watchman = callPackage ../development/tools/watchman { };
|
watchman = callPackage ../development/tools/watchman { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user