nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.5 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fetchpatch, 6 pkg-config, 7 freetype, 8 pango, 9 libpng, 10 libtiff, 11 giflib, 12 libjpeg, 13 netpbm, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "xplanet"; 18 version = "1.3.1"; 19 20 src = fetchurl { 21 url = "mirror://sourceforge/xplanet/${pname}-${version}.tar.gz"; 22 sha256 = "1rzc1alph03j67lrr66499zl0wqndiipmj99nqgvh9xzm1qdb023"; 23 }; 24 25 nativeBuildInputs = [ pkg-config ]; 26 buildInputs = [ 27 freetype 28 pango 29 libpng 30 libtiff 31 giflib 32 libjpeg 33 netpbm 34 ]; 35 36 patches = [ 37 (fetchpatch { 38 name = "giflib6.patch"; 39 url = "https://raw.githubusercontent.com/archlinux/svntogit-community/ce6f25eb369dc011161613894f01fd0a6ae85a09/trunk/giflib6.patch"; 40 sha256 = "173l0xkqq0v2bpaff7hhwc7y2aw5cclqw8988k1nalhyfbrjb8bl"; 41 }) 42 (fetchpatch { 43 name = "xplanet-c++11.patch"; 44 url = "https://raw.githubusercontent.com/archlinux/svntogit-community/ce6f25eb369dc011161613894f01fd0a6ae85a09/trunk/xplanet-c++11.patch"; 45 sha256 = "0vldai78ixw49bxch774pps6pq4sp0p33qvkvxywcz7p8kzpg8q2"; 46 }) 47 ]; 48 49 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; 50 51 meta = { 52 description = "Renders an image of the earth or other planets into the X root window"; 53 mainProgram = "xplanet"; 54 homepage = "https://xplanet.sourceforge.net"; 55 license = lib.licenses.gpl2; 56 maintainers = with lib.maintainers; [ 57 lassulus 58 ]; 59 platforms = lib.platforms.all; 60 }; 61}