nixpkgs/pkgs/games/pioneer/default.nix

40 lines
1.0 KiB
Nix
Raw Normal View History

2017-12-17 03:43:10 +00:00
{ fetchFromGitHub, stdenv, autoconf, automake, pkgconfig
, curl, libsigcxx, SDL2, SDL2_image, freetype, libvorbis, libpng, assimp, mesa
}:
2016-01-18 18:03:35 +00:00
stdenv.mkDerivation rec {
name = "pioneer-${version}";
2017-12-17 03:43:10 +00:00
version = "20171001";
2016-01-18 18:03:35 +00:00
src = fetchFromGitHub{
owner = "pioneerspacesim";
repo = "pioneer";
rev = version;
2017-12-17 03:43:10 +00:00
sha256 = "0yxw1zdvidrwc28vxfi3qpx2nq2dix2d6ylwgzq9ph8kgwv9fl5n";
2016-01-18 18:03:35 +00:00
};
2017-12-17 03:43:10 +00:00
nativeBuildInputs = [ autoconf automake pkgconfig ];
buildInputs = [ curl libsigcxx SDL2 SDL2_image freetype libvorbis libpng assimp mesa ];
2016-01-18 18:03:35 +00:00
NIX_CFLAGS_COMPILE = [
"-I${SDL2}/include/SDL2"
];
preConfigure = ''
export PIONEER_DATA_DIR="$out/share/pioneer/data";
./bootstrap
'';
2017-12-17 03:43:10 +00:00
enableParallelBuilding = true;
2016-01-18 18:03:35 +00:00
meta = with stdenv.lib; {
2017-12-17 03:43:10 +00:00
description = "A space adventure game set in the Milky Way galaxy at the turn of the 31st century";
homepage = https://pioneerspacesim.net;
2016-01-18 18:03:35 +00:00
license = with licenses; [
gpl3 cc-by-sa-30
];
platforms = [ "x86_64-linux" "i686-linux" ];
};
}