2022-02-17 21:21:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, assimp
|
|
|
|
, curl
|
|
|
|
, freetype
|
|
|
|
#, glew
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libpng
|
|
|
|
, libsigcxx
|
|
|
|
, libvorbis
|
|
|
|
, lua5_2
|
|
|
|
, mesa
|
|
|
|
, SDL2
|
|
|
|
, SDL2_image
|
2017-12-17 03:43:10 +00:00
|
|
|
}:
|
|
|
|
|
2016-01-18 18:03:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-16 10:20:18 +00:00
|
|
|
pname = "pioneer";
|
2024-07-12 02:48:45 +00:00
|
|
|
version = "20240710";
|
2016-01-18 18:03:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub{
|
|
|
|
owner = "pioneerspacesim";
|
|
|
|
repo = "pioneer";
|
|
|
|
rev = version;
|
2024-07-12 02:48:45 +00:00
|
|
|
hash = "sha256-zuPm5odMn6C3JqkgqQdgSztwxWjMmLVWUalYbEbAZro=";
|
2016-01-18 18:03:35 +00:00
|
|
|
};
|
|
|
|
|
2022-02-17 21:21:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace 'string(TIMESTAMP PROJECT_VERSION "%Y%m%d")' 'set(PROJECT_VERSION ${version})'
|
|
|
|
'';
|
|
|
|
|
2021-01-17 05:49:22 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-12-17 03:43:10 +00:00
|
|
|
|
2019-05-16 10:20:18 +00:00
|
|
|
buildInputs = [
|
2022-02-17 21:21:12 +00:00
|
|
|
assimp
|
|
|
|
curl
|
|
|
|
freetype
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libpng
|
|
|
|
libsigcxx
|
|
|
|
libvorbis
|
|
|
|
lua5_2
|
|
|
|
mesa
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
2016-01-18 18:03:35 +00:00
|
|
|
];
|
|
|
|
|
2022-02-17 21:21:12 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPIONEER_DATA_DIR:PATH=${placeholder "out"}/share/pioneer/data"
|
|
|
|
"-DUSE_SYSTEM_LIBLUA:BOOL=YES"
|
|
|
|
];
|
2016-01-18 18:03:35 +00:00
|
|
|
|
2022-02-17 21:21:12 +00:00
|
|
|
makeFlags = [ "all" "build-data" ];
|
2021-08-20 13:03:00 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-12-17 03:43:10 +00:00
|
|
|
description = "Space adventure game set in the Milky Way galaxy at the turn of the 31st century";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pioneerspacesim.net";
|
2016-01-18 18:03:35 +00:00
|
|
|
license = with licenses; [
|
2022-02-17 21:21:12 +00:00
|
|
|
gpl3Only cc-by-sa-30
|
2016-01-18 18:03:35 +00:00
|
|
|
];
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
};
|
|
|
|
}
|