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