about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/astronomy/xplanet/default.nix
blob: 5f02dc27a224b0bd0d2245d63e49d8a7832ddc27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{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
  ];

  NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";

  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;
  };
}