libgme: Don't reference gcc-unwrapped

This commit is contained in:
Doron Behar 2020-06-03 18:52:00 +03:00
parent 51fd4ebc6a
commit cf657dc584

View File

@ -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)"
'';
}