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
45
pkgs/games/zandronum/fmod.nix
Normal file
45
pkgs/games/zandronum/fmod.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ stdenv, lib, fetchurl, alsa-lib, libpulseaudio, undmg }:
|
||||
|
||||
let
|
||||
bits = lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") "64";
|
||||
libPath = lib.makeLibraryPath [ stdenv.cc.cc alsa-lib libpulseaudio ];
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fmod";
|
||||
version = "4.44.64";
|
||||
shortVersion = builtins.replaceStrings [ "." ] [ "" ] version;
|
||||
|
||||
src = fetchurl (if stdenv.isLinux then {
|
||||
url = "https://zdoom.org/files/fmod/fmodapi${shortVersion}linux.tar.gz";
|
||||
sha256 = "047hk92xapwwqj281f4zwl0ih821rrliya70gfj82sdfjh9lz8i1";
|
||||
} else {
|
||||
url = "https://zdoom.org/files/fmod/fmodapi${shortVersion}mac-installer.dmg";
|
||||
sha256 = "1m1y4cpcwpkl8x31d3s68xzp107f343ma09w2437i2adn5y7m8ii";
|
||||
});
|
||||
|
||||
nativeBuildInputs = [ undmg ];
|
||||
|
||||
dontStrip = true;
|
||||
dontPatchELF = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = lib.optionalString stdenv.isLinux ''
|
||||
install -Dm755 api/lib/libfmodex${bits}-${version}.so $out/lib/libfmodex-${version}.so
|
||||
ln -s libfmodex-${version}.so $out/lib/libfmodex.so
|
||||
patchelf --set-rpath ${libPath} $out/lib/libfmodex.so
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
install -D api/lib/libfmodex.dylib $out/lib/libfmodex.dylib
|
||||
install -D api/lib/libfmodexL.dylib $out/lib/libfmodexL.dylib
|
||||
'' + ''
|
||||
cp -r api/inc $out/include
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Programming library and toolkit for the creation and playback of interactive audio";
|
||||
homepage = "http://www.fmod.org/";
|
||||
license = licenses.unfreeRedistributable;
|
||||
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
||||
maintainers = [ maintainers.lassulus ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue