diff options
author | Linus Heckemann <git@sphalerite.org> | 2022-07-20 16:16:52 +0200 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2022-07-20 17:08:32 +0200 |
commit | bbd78d6030ff6e8d78fbc575f9de1ef3809bd990 (patch) | |
tree | 229a8e9c40869d9a918d61fdc2ed3e31f021712e /pkgs/applications/audio | |
parent | e4d49de45a3b5dbcb881656b4e3986e666141ea9 (diff) | |
download | nixlib-bbd78d6030ff6e8d78fbc575f9de1ef3809bd990.tar nixlib-bbd78d6030ff6e8d78fbc575f9de1ef3809bd990.tar.gz nixlib-bbd78d6030ff6e8d78fbc575f9de1ef3809bd990.tar.bz2 nixlib-bbd78d6030ff6e8d78fbc575f9de1ef3809bd990.tar.lz nixlib-bbd78d6030ff6e8d78fbc575f9de1ef3809bd990.tar.xz nixlib-bbd78d6030ff6e8d78fbc575f9de1ef3809bd990.tar.zst nixlib-bbd78d6030ff6e8d78fbc575f9de1ef3809bd990.zip |
libgme: remove
This was a duplicate package, we already had it under the name game-music-emu. This commit merges the stdenv reference fix that was present in libgme into game-music-emu as well.
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/game-music-emu/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/applications/audio/game-music-emu/default.nix b/pkgs/applications/audio/game-music-emu/default.nix index 55f12fd3c64a..b54bf789f6b2 100644 --- a/pkgs/applications/audio/game-music-emu/default.nix +++ b/pkgs/applications/audio/game-music-emu/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, cmake }: +{ lib, stdenv, fetchurl, cmake, removeReferencesTo }: stdenv.mkDerivation rec { version = "0.6.3"; @@ -9,13 +9,21 @@ stdenv.mkDerivation rec { sha256 = "07857vdkak306d9s5g6fhmjyxk7vijzjhkmqb15s7ihfxx9lx8xb"; }; cmakeFlags = lib.optionals stdenv.isDarwin [ "-DENABLE_UBSAN=OFF" ]; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ cmake removeReferencesTo ]; + + # It used to reference it, in the past, but thanks to the postFixup hook, now + # it doesn't. + disallowedReferences = [ stdenv.cc.cc ]; + + postFixup = lib.optionalString stdenv.isLinux '' + remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)" + ''; meta = with lib; { homepage = "https://bitbucket.org/mpyne/game-music-emu/wiki/Home"; description = "A collection of video game music file emulators"; license = licenses.lgpl21Plus; platforms = platforms.all; - maintainers = with maintainers; [ luc65r ]; + maintainers = with maintainers; [ luc65r lheckemann ]; }; } |