mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #89324 from doronbehar/libgme-gcc-ref
libgme: Don't reference gcc-unwrapped
This commit is contained in:
commit
073c37e065
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromBitbucket, cmake }:
|
||||
{ stdenv, fetchFromBitbucket, cmake, removeReferencesTo }:
|
||||
let
|
||||
version = "0.6.3";
|
||||
in stdenv.mkDerivation {
|
||||
|
@ -21,4 +21,14 @@ in stdenv.mkDerivation {
|
|||
};
|
||||
|
||||
buildInputs = [ cmake ];
|
||||
|
||||
nativeBuildInputs = [ removeReferencesTo ];
|
||||
|
||||
# It used to reference it, in the past, but thanks to the postFixup hook, now
|
||||
# it doesn't.
|
||||
disallowedReferences = [ stdenv.cc.cc ];
|
||||
|
||||
postFixup = stdenv.lib.optionalString stdenv.isLinux ''
|
||||
remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue