nixpkgs/pkgs/games/pioneer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

70 lines
1.2 KiB
Nix
Raw Normal View History

{ 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";
version = "20220203";
2016-01-18 18:03:35 +00:00
src = fetchFromGitHub{
owner = "pioneerspacesim";
repo = "pioneer";
rev = version;
hash = "sha256-HNVg8Lq6k6gQDmgOdpnBwJ57WSEnn5XwtqzmkDU1WGI=";
2016-01-18 18:03:35 +00:00
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace 'string(TIMESTAMP PROJECT_VERSION "%Y%m%d")' 'set(PROJECT_VERSION ${version})'
'';
nativeBuildInputs = [ cmake pkg-config ];
2017-12-17 03:43:10 +00:00
2019-05-16 10:20:18 +00:00
buildInputs = [
assimp
curl
freetype
libGL
libGLU
libpng
libsigcxx
libvorbis
lua5_2
mesa
SDL2
SDL2_image
2016-01-18 18:03:35 +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
makeFlags = [ "all" "build-data" ];
2021-08-20 13:03:00 +00:00
meta = with lib; {
2017-12-17 03:43:10 +00:00
description = "A space adventure game set in the Milky Way galaxy at the turn of the 31st century";
homepage = "https://pioneerspacesim.net";
2016-01-18 18:03:35 +00:00
license = with licenses; [
gpl3Only cc-by-sa-30
2016-01-18 18:03:35 +00:00
];
platforms = [ "x86_64-linux" "i686-linux" ];
};
}