uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
69
pkgs/games/pioneer/default.nix
Normal file
69
pkgs/games/pioneer/default.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, assimp
|
||||
, curl
|
||||
, freetype
|
||||
#, glew
|
||||
, libGL
|
||||
, libGLU
|
||||
, libpng
|
||||
, libsigcxx
|
||||
, libvorbis
|
||||
, lua5_2
|
||||
, mesa
|
||||
, SDL2
|
||||
, SDL2_image
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pioneer";
|
||||
version = "20220203";
|
||||
|
||||
src = fetchFromGitHub{
|
||||
owner = "pioneerspacesim";
|
||||
repo = "pioneer";
|
||||
rev = version;
|
||||
hash = "sha256-HNVg8Lq6k6gQDmgOdpnBwJ57WSEnn5XwtqzmkDU1WGI=";
|
||||
};
|
||||
|
||||
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
|
||||
lua5_2
|
||||
mesa
|
||||
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 = "A 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" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue