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
43
pkgs/games/openarena/default.nix
Normal file
43
pkgs/games/openarena/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, fetchurl, makeWrapper, patchelf, pkgs, stdenv, SDL, libglvnd, libogg, libvorbis, curl, openal }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "openarena";
|
||||
version = "0.8.8";
|
||||
|
||||
src = fetchurl {
|
||||
name = "openarena.zip";
|
||||
url = "http://openarena.ws/request.php?4";
|
||||
sha256 = "0jmc1cmdz1rcvqc9ilzib1kilpwap6v0d331l6q53wsibdzsz3ss";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgs.unzip patchelf makeWrapper];
|
||||
|
||||
installPhase = let
|
||||
gameDir = "$out/openarena-$version";
|
||||
interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")";
|
||||
libPath = lib.makeLibraryPath [ SDL libglvnd libogg libvorbis curl openal ];
|
||||
arch = {
|
||||
"x86_64-linux" = "x86_64";
|
||||
"i386-linux" = "i386";
|
||||
}.${stdenv.hostPlatform.system};
|
||||
in ''
|
||||
mkdir -pv $out/bin
|
||||
cd $out
|
||||
unzip $src
|
||||
|
||||
patchelf --set-interpreter "${interpreter}" "${gameDir}/openarena.${arch}"
|
||||
patchelf --set-interpreter "${interpreter}" "${gameDir}/oa_ded.${arch}"
|
||||
|
||||
makeWrapper "${gameDir}/openarena.${arch}" "$out/bin/openarena" \
|
||||
--prefix LD_LIBRARY_PATH : "${libPath}"
|
||||
makeWrapper "${gameDir}/oa_ded.${arch}" "$out/bin/oa_ded"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Crossplatform openarena client";
|
||||
homepage = "http://openarena.ws/";
|
||||
maintainers = [ lib.maintainers.wyvie ];
|
||||
platforms = [ "i386-linux" "x86_64-linux" ];
|
||||
license = lib.licenses.gpl2;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue