1 {lib, stdenv, fetchurl, fetchpatch, pkg-config, freetype, pango, libpng, libtiff
2 , giflib, libjpeg, netpbm}:
4 stdenv.mkDerivation rec {
9 url = "mirror://sourceforge/xplanet/${pname}-${version}.tar.gz";
10 sha256 = "1rzc1alph03j67lrr66499zl0wqndiipmj99nqgvh9xzm1qdb023";
13 nativeBuildInputs = [ pkg-config ];
14 buildInputs = [ freetype pango libpng libtiff giflib libjpeg netpbm ];
18 name = "giflib6.patch";
19 url = "https://raw.githubusercontent.com/archlinux/svntogit-community/ce6f25eb369dc011161613894f01fd0a6ae85a09/trunk/giflib6.patch";
20 sha256 = "173l0xkqq0v2bpaff7hhwc7y2aw5cclqw8988k1nalhyfbrjb8bl";
23 name = "xplanet-c++11.patch";
24 url = "https://raw.githubusercontent.com/archlinux/svntogit-community/ce6f25eb369dc011161613894f01fd0a6ae85a09/trunk/xplanet-c++11.patch";
25 sha256 = "0vldai78ixw49bxch774pps6pq4sp0p33qvkvxywcz7p8kzpg8q2";
29 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
32 description = "Renders an image of the earth or other planets into the X root window";
33 mainProgram = "xplanet";
34 homepage = "https://xplanet.sourceforge.net";
35 license = licenses.gpl2;
36 maintainers = with maintainers; [ lassulus sander ];
37 platforms = platforms.all;