5286e3007b
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/cdss984bbgybydbx2y0vsih49759cigd-pioneer-20180203/bin/pioneer -h` got 0 exit code - ran `/nix/store/cdss984bbgybydbx2y0vsih49759cigd-pioneer-20180203/bin/pioneer --help` got 0 exit code - ran `/nix/store/cdss984bbgybydbx2y0vsih49759cigd-pioneer-20180203/bin/pioneer help` got 0 exit code - ran `/nix/store/cdss984bbgybydbx2y0vsih49759cigd-pioneer-20180203/bin/modelcompiler -h` got 0 exit code - ran `/nix/store/cdss984bbgybydbx2y0vsih49759cigd-pioneer-20180203/bin/modelcompiler --help` got 0 exit code - ran `/nix/store/cdss984bbgybydbx2y0vsih49759cigd-pioneer-20180203/bin/modelcompiler help` got 0 exit code - found 20180203 with grep in /nix/store/cdss984bbgybydbx2y0vsih49759cigd-pioneer-20180203
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{ fetchFromGitHub, stdenv, autoconf, automake, pkgconfig
|
|
, curl, libsigcxx, SDL2, SDL2_image, freetype, libvorbis, libpng, assimp, mesa
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pioneer-${version}";
|
|
version = "20180203";
|
|
|
|
src = fetchFromGitHub{
|
|
owner = "pioneerspacesim";
|
|
repo = "pioneer";
|
|
rev = version;
|
|
sha256 = "0hp2mf36kj2v93hka8m8lxw2qhmnjc62wjlpw7c7ix0r8xa01i6h";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoconf automake pkgconfig ];
|
|
|
|
buildInputs = [ curl libsigcxx SDL2 SDL2_image freetype libvorbis libpng assimp mesa ];
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
"-I${SDL2}/include/SDL2"
|
|
];
|
|
|
|
preConfigure = ''
|
|
export PIONEER_DATA_DIR="$out/share/pioneer/data";
|
|
./bootstrap
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A space adventure game set in the Milky Way galaxy at the turn of the 31st century";
|
|
homepage = https://pioneerspacesim.net;
|
|
license = with licenses; [
|
|
gpl3 cc-by-sa-30
|
|
];
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
};
|
|
}
|