2017-12-17 03:43:10 +00:00
|
|
|
{ fetchFromGitHub, stdenv, autoconf, automake, pkgconfig
|
2018-02-24 13:12:44 +00:00
|
|
|
, 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}";
|
2018-02-27 17:54:59 +00:00
|
|
|
version = "20180203";
|
2016-01-18 18:03:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub{
|
|
|
|
owner = "pioneerspacesim";
|
|
|
|
repo = "pioneer";
|
|
|
|
rev = version;
|
2018-02-27 17:54:59 +00:00
|
|
|
sha256 = "0hp2mf36kj2v93hka8m8lxw2qhmnjc62wjlpw7c7ix0r8xa01i6h";
|
2016-01-18 18:03:35 +00:00
|
|
|
};
|
|
|
|
|
2017-12-17 03:43:10 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake pkgconfig ];
|
|
|
|
|
2018-02-24 13:12:44 +00:00
|
|
|
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";
|
2017-08-22 18:50:04 +00:00
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|