diff options
author | Doron Behar <doron.behar@gmail.com> | 2020-06-03 18:52:00 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2020-06-03 20:34:24 +0300 |
commit | cf657dc584e296b629ac037aab583002b11166cf (patch) | |
tree | 2a2588077c182c6e4cda4a4f6b720a1b805aa9d6 | |
parent | 51fd4ebc6ac7ebbe2ae1a785de955edbb816c9e8 (diff) | |
download | nixpkgs-cf657dc584e296b629ac037aab583002b11166cf.tar nixpkgs-cf657dc584e296b629ac037aab583002b11166cf.tar.gz nixpkgs-cf657dc584e296b629ac037aab583002b11166cf.tar.bz2 nixpkgs-cf657dc584e296b629ac037aab583002b11166cf.tar.lz nixpkgs-cf657dc584e296b629ac037aab583002b11166cf.tar.xz nixpkgs-cf657dc584e296b629ac037aab583002b11166cf.tar.zst nixpkgs-cf657dc584e296b629ac037aab583002b11166cf.zip |
libgme: Don't reference gcc-unwrapped
-rw-r--r-- | pkgs/development/libraries/audio/libgme/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/libraries/audio/libgme/default.nix b/pkgs/development/libraries/audio/libgme/default.nix index bcd6070831b..3ac8293986d 100644 --- a/pkgs/development/libraries/audio/libgme/default.nix +++ b/pkgs/development/libraries/audio/libgme/default.nix @@ -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)" + ''; } |