Files
nixpkgs/pkgs/by-name/pi/pioneer/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

83 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
assimp,
curl,
freetype,
#, glew
libGL,
libGLU,
libpng,
libsigcxx,
libvorbis,
libX11,
lua5_2,
libgbm,
SDL2,
SDL2_image,
}:
stdenv.mkDerivation rec {
pname = "pioneer";
version = "20250501";
src = fetchFromGitHub {
owner = "pioneerspacesim";
repo = "pioneer";
rev = version;
hash = "sha256-bQ1JGndHbBM28SuAUybo9msC/nBXu6el1UY41BKJN5A=";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace 'string(TIMESTAMP PROJECT_VERSION "%Y%m%d")' 'set(PROJECT_VERSION ${version})'
'';
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
assimp
curl
freetype
libGL
libGLU
libpng
libsigcxx
libvorbis
libX11
lua5_2
libgbm
SDL2
SDL2_image
];
cmakeFlags = [
"-DPIONEER_DATA_DIR:PATH=${placeholder "out"}/share/pioneer/data"
"-DUSE_SYSTEM_LIBLUA:BOOL=YES"
];
makeFlags = [
"all"
"build-data"
];
meta = with lib; {
description = "Space adventure game set in the Milky Way galaxy at the turn of the 31st century";
homepage = "https://pioneerspacesim.net";
license = with licenses; [
gpl3Only
cc-by-sa-30
];
platforms = [
"x86_64-linux"
"i686-linux"
];
};
}