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
34
pkgs/games/quake3/wrapper/default.nix
Normal file
34
pkgs/games/quake3/wrapper/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ stdenv, buildEnv, lib, libGL, ioquake3, makeWrapper }:
|
||||
|
||||
{ paks, name ? (lib.head paks).name, description ? "" }:
|
||||
|
||||
let
|
||||
libPath = lib.makeLibraryPath [ libGL stdenv.cc.cc ];
|
||||
env = buildEnv {
|
||||
name = "quake3-env";
|
||||
paths = [ ioquake3 ] ++ paks;
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
name = "${name}-${ioquake3.name}";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
# We add Mesa to the end of $LD_LIBRARY_PATH to provide fallback
|
||||
# software rendering. GCC is needed so that libgcc_s.so can be found
|
||||
# when Mesa is used.
|
||||
makeWrapper ${env}/ioquake3.* $out/bin/quake3 \
|
||||
--suffix-each LD_LIBRARY_PATH ':' "${libPath}" \
|
||||
--add-flags "+set fs_basepath ${env} +set r_allowSoftwareGL 1"
|
||||
|
||||
makeWrapper ${env}/ioq3ded.* $out/bin/quake3-server \
|
||||
--add-flags "+set fs_basepath ${env}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit description;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue