nixpkgs-suyu/pkgs/games/pioneer/default.nix

40 lines
1 KiB
Nix
Raw Normal View History

2017-12-17 04:43:10 +01:00
{ fetchFromGitHub, stdenv, autoconf, automake, pkgconfig
, curl, libsigcxx, SDL2, SDL2_image, freetype, libvorbis, libpng, assimp, libGLU_combined
2017-12-17 04:43:10 +01:00
}:
2016-01-18 19:03:35 +01:00
stdenv.mkDerivation rec {
name = "pioneer-${version}";
version = "20180203";
2016-01-18 19:03:35 +01:00
src = fetchFromGitHub{
owner = "pioneerspacesim";
repo = "pioneer";
rev = version;
sha256 = "0hp2mf36kj2v93hka8m8lxw2qhmnjc62wjlpw7c7ix0r8xa01i6h";
2016-01-18 19:03:35 +01:00
};
2017-12-17 04:43:10 +01:00
nativeBuildInputs = [ autoconf automake pkgconfig ];
buildInputs = [ curl libsigcxx SDL2 SDL2_image freetype libvorbis libpng assimp libGLU_combined ];
2016-01-18 19:03:35 +01:00
NIX_CFLAGS_COMPILE = [
"-I${SDL2}/include/SDL2"
];
preConfigure = ''
export PIONEER_DATA_DIR="$out/share/pioneer/data";
./bootstrap
'';
2017-12-17 04:43:10 +01:00
enableParallelBuilding = true;
2016-01-18 19:03:35 +01:00
meta = with stdenv.lib; {
2017-12-17 04:43:10 +01: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 19:03:35 +01:00
license = with licenses; [
gpl3 cc-by-sa-30
];
platforms = [ "x86_64-linux" "i686-linux" ];
};
}