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, libGLU_combined
2017-12-17 03:43:10 +00:00
}:
2016-01-18 18:03:35 +00:00
stdenv.mkDerivation rec {
name = "pioneer-${version}";
version = "20180203";
2016-01-18 18:03:35 +00:00
src = fetchFromGitHub{
owner = "pioneerspacesim";
repo = "pioneer";
rev = version;
sha256 = "0hp2mf36kj2v93hka8m8lxw2qhmnjc62wjlpw7c7ix0r8xa01i6h";
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 libGLU_combined ];
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" ];
};
}