nixpkgs/pkgs/applications/science/astronomy/xplanet/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.4 KiB
Nix
Raw Normal View History

{lib, stdenv, fetchurl, fetchpatch, pkg-config, freetype, pango, libpng, libtiff
2019-12-09 18:33:47 +00:00
, giflib, libjpeg, netpbm}:
stdenv.mkDerivation rec {
2019-12-09 18:33:47 +00:00
pname = "xplanet";
version = "1.3.1";
src = fetchurl {
2019-12-09 18:33:47 +00:00
url = "mirror://sourceforge/xplanet/${pname}-${version}.tar.gz";
sha256 = "1rzc1alph03j67lrr66499zl0wqndiipmj99nqgvh9xzm1qdb023";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ freetype pango libpng libtiff giflib libjpeg netpbm ];
2017-08-30 15:04:26 +00:00
patches = [
2019-12-09 18:33:47 +00:00
(fetchpatch {
name = "giflib6.patch";
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/ce6f25eb369dc011161613894f01fd0a6ae85a09/trunk/giflib6.patch";
2019-12-09 18:33:47 +00:00
sha256 = "173l0xkqq0v2bpaff7hhwc7y2aw5cclqw8988k1nalhyfbrjb8bl";
})
(fetchpatch {
name = "xplanet-c++11.patch";
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/ce6f25eb369dc011161613894f01fd0a6ae85a09/trunk/xplanet-c++11.patch";
2019-12-09 18:33:47 +00:00
sha256 = "0vldai78ixw49bxch774pps6pq4sp0p33qvkvxywcz7p8kzpg8q2";
})
2017-08-30 15:04:26 +00:00
];
2013-12-07 11:12:31 +00:00
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
meta = with lib; {
description = "Renders an image of the earth or other planets into the X root window";
mainProgram = "xplanet";
homepage = "https://xplanet.sourceforge.net";
2019-12-09 18:33:47 +00:00
license = licenses.gpl2;
maintainers = with maintainers; [ lassulus sander ];
platforms = platforms.all;
};
}