diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/science/astronomy/xplanet/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/science/astronomy/xplanet/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/science/astronomy/xplanet/default.nix b/nixpkgs/pkgs/applications/science/astronomy/xplanet/default.nix new file mode 100644 index 000000000000..7abd83b6dc12 --- /dev/null +++ b/nixpkgs/pkgs/applications/science/astronomy/xplanet/default.nix @@ -0,0 +1,27 @@ +{stdenv, fetchurl, pkgconfig, freetype, pango, libpng, libtiff, giflib +, libjpeg, netpbm}: + +stdenv.mkDerivation rec { + name = "xplanet-1.3.0"; + + src = fetchurl { + url = "mirror://sourceforge/xplanet/${name}.tar.gz"; + sha256 = "0hml2v228wi2r61m1pgka7h96rl92b6apk0iigm62miyp4mp9ys4"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ freetype pango libpng libtiff giflib libjpeg netpbm ]; + + patches = [ + ./giflib.patch + ./gcc6.patch + ]; + + meta = { + description = "Renders an image of the earth or other planets into the X root window"; + homepage = http://xplanet.sourceforge.net; + license = "GPL"; + maintainers = [ stdenv.lib.maintainers.sander ]; + platforms = stdenv.lib.platforms.all; + }; +} |