3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/games/pioneer/default.nix

37 lines
924 B
Nix
Raw Normal View History

2019-05-16 11:20:18 +01:00
{ fetchFromGitHub, stdenv, cmake, pkgconfig, curl, libsigcxx, SDL2
2019-11-10 16:44:34 +00:00
, SDL2_image, freetype, libvorbis, libpng, assimp, libGLU, libGL
2019-05-16 11:20:18 +01:00
, glew
2017-12-17 03:43:10 +00:00
}:
2016-01-18 18:03:35 +00:00
stdenv.mkDerivation rec {
2019-05-16 11:20:18 +01:00
pname = "pioneer";
2020-02-06 12:47:38 +00:00
version = "20200203";
2016-01-18 18:03:35 +00:00
src = fetchFromGitHub{
owner = "pioneerspacesim";
repo = "pioneer";
rev = version;
2020-02-06 12:47:38 +00:00
sha256 = "1011xsi94jhw98mhm8kryq8ajig0qfbrdx5xdasi92bd4nk7lcp8";
2016-01-18 18:03:35 +00:00
};
2019-05-16 11:20:18 +01:00
nativeBuildInputs = [ cmake pkgconfig ];
2017-12-17 03:43:10 +00:00
2019-05-16 11:20:18 +01:00
buildInputs = [
curl libsigcxx SDL2 SDL2_image freetype libvorbis libpng
2019-11-10 16:44:34 +00:00
assimp libGLU libGL glew
2016-01-18 18:03:35 +00:00
];
preConfigure = ''
2019-05-16 11:20:18 +01:00
export PIONEER_DATA_DIR="$out/share/pioneer/data";
2016-01-18 18:03:35 +00:00
'';
meta = with stdenv.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; [
gpl3 cc-by-sa-30
];
platforms = [ "x86_64-linux" "i686-linux" ];
};
}