Merge pull request #89324 from doronbehar/libgme-gcc-ref

libgme: Don't reference gcc-unwrapped
This commit is contained in:
Linus Heckemann 2020-06-04 14:48:55 +02:00 committed by GitHub
commit 073c37e065
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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