summary refs log tree commit diff
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2020-06-03 18:52:00 +0300
committerDoron Behar <doron.behar@gmail.com>2020-06-03 20:34:24 +0300
commitcf657dc584e296b629ac037aab583002b11166cf (patch)
tree2a2588077c182c6e4cda4a4f6b720a1b805aa9d6
parent51fd4ebc6ac7ebbe2ae1a785de955edbb816c9e8 (diff)
downloadnixpkgs-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.nix12
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)"
+  '';
 }