2021-01-16 21:49:22 -08:00
|
|
|
{ fetchFromGitHub, lib, stdenv, cmake, pkg-config, curl, libsigcxx, SDL2
|
2019-11-10 08:44:34 -08:00
|
|
|
, SDL2_image, freetype, libvorbis, libpng, assimp, libGLU, libGL
|
2019-05-16 03:20:18 -07:00
|
|
|
, glew
|
2017-12-16 19:43:10 -08:00
|
|
|
}:
|
|
|
|
|
2016-01-18 10:03:35 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-16 03:20:18 -07:00
|
|
|
pname = "pioneer";
|
2021-02-06 08:47:09 -08:00
|
|
|
version = "20210203";
|
2016-01-18 10:03:35 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub{
|
|
|
|
owner = "pioneerspacesim";
|
|
|
|
repo = "pioneer";
|
|
|
|
rev = version;
|
2021-02-06 08:47:09 -08:00
|
|
|
sha256 = "sha256-51HXbX15uB1Xf9Re7Qi41BnJ9OW+GeXQhylJ+HwP0f8=";
|
2016-01-18 10:03:35 -08:00
|
|
|
};
|
|
|
|
|
2021-01-16 21:49:22 -08:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-12-16 19:43:10 -08:00
|
|
|
|
2019-05-16 03:20:18 -07:00
|
|
|
buildInputs = [
|
|
|
|
curl libsigcxx SDL2 SDL2_image freetype libvorbis libpng
|
2019-11-10 08:44:34 -08:00
|
|
|
assimp libGLU libGL glew
|
2016-01-18 10:03:35 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2019-05-16 03:20:18 -07:00
|
|
|
export PIONEER_DATA_DIR="$out/share/pioneer/data";
|
2016-01-18 10:03:35 -08:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-12-16 19:43:10 -08:00
|
|
|
description = "A space adventure game set in the Milky Way galaxy at the turn of the 31st century";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://pioneerspacesim.net";
|
2016-01-18 10:03:35 -08:00
|
|
|
license = with licenses; [
|
|
|
|
gpl3 cc-by-sa-30
|
|
|
|
];
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
};
|
|
|
|
}
|