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/development/libraries/audio/libgme/default.nix
Normal file
34
pkgs/development/libraries/audio/libgme/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchFromBitbucket, cmake, removeReferencesTo }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libgme";
|
||||
version = "0.6.3";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A collection of video game music chip emulators";
|
||||
homepage = "https://bitbucket.org/mpyne/game-music-emu/overview";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ lheckemann ];
|
||||
};
|
||||
|
||||
src = fetchFromBitbucket {
|
||||
owner = "mpyne";
|
||||
repo = "game-music-emu";
|
||||
rev = version;
|
||||
sha256 = "100ahb4n4pvgcry9xzlf2fr4j57n5h9x7pvyhhxys4dcy8axqqsy";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake removeReferencesTo ];
|
||||
|
||||
# These checks fail on aarch64-darwin
|
||||
cmakeFlags = [ "-DENABLE_UBSAN=OFF" ];
|
||||
|
||||
# It used to reference it, in the past, but thanks to the postFixup hook, now
|
||||
# it doesn't.
|
||||
disallowedReferences = [ stdenv.cc.cc ];
|
||||
|
||||
postFixup = lib.optionalString stdenv.isLinux ''
|
||||
remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue