2019-12-09 18:33:47 +00:00
|
|
|
{stdenv, fetchurl, fetchpatch, pkgconfig, freetype, pango, libpng, libtiff
|
|
|
|
, giflib, libjpeg, netpbm}:
|
2009-09-11 15:06:51 +01:00
|
|
|
|
2012-02-19 09:22:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-12-09 18:33:47 +00:00
|
|
|
pname = "xplanet";
|
|
|
|
version = "1.3.1";
|
2010-01-26 15:27:18 +00:00
|
|
|
|
2009-09-11 15:06:51 +01:00
|
|
|
src = fetchurl {
|
2019-12-09 18:33:47 +00:00
|
|
|
url = "mirror://sourceforge/xplanet/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1rzc1alph03j67lrr66499zl0wqndiipmj99nqgvh9xzm1qdb023";
|
2009-09-11 15:06:51 +01:00
|
|
|
};
|
2010-01-26 15:27:18 +00:00
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ freetype pango libpng libtiff giflib libjpeg netpbm ];
|
2010-01-26 15:27:18 +00:00
|
|
|
|
2017-08-30 16:04:26 +01:00
|
|
|
patches = [
|
2019-12-09 18:33:47 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "giflib6.patch";
|
|
|
|
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/giflib6.patch?h=packages/xplanet&id=ce6f25eb369dc011161613894f01fd0a6ae85a09";
|
|
|
|
sha256 = "173l0xkqq0v2bpaff7hhwc7y2aw5cclqw8988k1nalhyfbrjb8bl";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "xplanet-c++11.patch";
|
|
|
|
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/xplanet-c++11.patch?h=packages/xplanet&id=ce6f25eb369dc011161613894f01fd0a6ae85a09";
|
|
|
|
sha256 = "0vldai78ixw49bxch774pps6pq4sp0p33qvkvxywcz7p8kzpg8q2";
|
|
|
|
})
|
2017-08-30 16:04:26 +01:00
|
|
|
];
|
2013-12-07 11:12:31 +00:00
|
|
|
|
2019-04-30 02:28:43 +01:00
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
2019-04-23 03:36:35 +01:00
|
|
|
|
2019-12-09 18:33:47 +00:00
|
|
|
meta = with stdenv.lib; {
|
2009-09-11 15:06:51 +01:00
|
|
|
description = "Renders an image of the earth or other planets into the X root window";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://xplanet.sourceforge.net";
|
2019-12-09 18:33:47 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ lassulus sander ];
|
|
|
|
platforms = platforms.all;
|
2009-09-11 15:06:51 +01:00
|
|
|
};
|
|
|
|
}
|