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
73
pkgs/games/clonehero/default.nix
Normal file
73
pkgs/games/clonehero/default.nix
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, autoPatchelfHook
|
||||
, alsa-lib
|
||||
, gtk2
|
||||
, libXrandr
|
||||
, libXScrnSaver
|
||||
, udev
|
||||
, zlib
|
||||
}:
|
||||
|
||||
let
|
||||
name = "clonehero";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "${name}-unwrapped";
|
||||
version = "0.23.2.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://dl.clonehero.net/${name}-v${lib.removePrefix "0" version}/${name}-linux.tar.gz";
|
||||
sha256 = "0k9jcnd55yhr42gj8cmysd18yldp4k3cpk4z884p2ww03fyfq7mi";
|
||||
};
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
|
||||
buildInputs = [
|
||||
# Load-time libraries (loaded from DT_NEEDED section in ELF binary)
|
||||
gtk2
|
||||
stdenv.cc.cc.lib
|
||||
zlib
|
||||
|
||||
# Run-time libraries (loaded with dlopen)
|
||||
alsa-lib # ALSA sound
|
||||
libXrandr # X11 resolution detection
|
||||
libXScrnSaver # X11 screensaver prevention
|
||||
udev # udev input drivers
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin" "$out/share"
|
||||
install -Dm755 ${name} "$out/bin"
|
||||
cp -r clonehero_Data "$out/share"
|
||||
|
||||
mkdir -p "$doc/share/${name}"
|
||||
cp README.txt "$doc/share/${name}"
|
||||
'';
|
||||
|
||||
# Patch required run-time libraries as load-time libraries
|
||||
#
|
||||
# Libraries found with:
|
||||
# > strings clonehero | grep '\.so'
|
||||
# and
|
||||
# > strace clonehero 2>&1 | grep '\.so'
|
||||
postFixup = ''
|
||||
patchelf \
|
||||
--add-needed libasound.so.2 \
|
||||
--add-needed libudev.so.1 \
|
||||
--add-needed libXrandr.so.2 \
|
||||
--add-needed libXss.so.1 \
|
||||
"$out/bin/${name}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Clone of Guitar Hero and Rockband-style games";
|
||||
homepage = "https://clonehero.net";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ kira-bruneau ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue