2019-05-16 12:20:18 +02:00
|
|
|
{ fetchFromGitHub, stdenv, cmake, pkgconfig, curl, libsigcxx, SDL2
|
|
|
|
, SDL2_image, freetype, libvorbis, libpng, assimp, libGLU_combined
|
|
|
|
, glew
|
2017-12-17 04:43:10 +01:00
|
|
|
}:
|
|
|
|
|
2016-01-18 19:03:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-16 12:20:18 +02:00
|
|
|
pname = "pioneer";
|
2019-10-23 07:44:00 +02:00
|
|
|
version = "20191009";
|
2016-01-18 19:03:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub{
|
|
|
|
owner = "pioneerspacesim";
|
|
|
|
repo = "pioneer";
|
|
|
|
rev = version;
|
2019-10-23 07:44:00 +02:00
|
|
|
sha256 = "1ll6pv1931z29kz1zvhnc6mgvjxz30q25lvb00qrsvh236nvll7n";
|
2016-01-18 19:03:35 +01:00
|
|
|
};
|
|
|
|
|
2019-05-16 12:20:18 +02:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2017-12-17 04:43:10 +01:00
|
|
|
|
2019-05-16 12:20:18 +02:00
|
|
|
buildInputs = [
|
|
|
|
curl libsigcxx SDL2 SDL2_image freetype libvorbis libpng
|
|
|
|
assimp libGLU_combined glew
|
2016-01-18 19:03:35 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2019-05-16 12:20:18 +02:00
|
|
|
export PIONEER_DATA_DIR="$out/share/pioneer/data";
|
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" ];
|
|
|
|
};
|
|
|
|
}
|