diff options
author | Linus Heckemann <git@sphalerite.org> | 2022-08-30 12:09:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 12:09:08 +0200 |
commit | df8b4cc43fc79589522f7006c94f7beca614bcd8 (patch) | |
tree | e725b0ead8b12f7cf01b50c43d032d63ab1a20d5 /pkgs/applications/audio | |
parent | 310b9955cebe9c96eba79c849f0a9e85a5a8fb04 (diff) | |
parent | 698317297468f59fb4d4d810ff9eb6d6d026e4e2 (diff) | |
download | nixlib-df8b4cc43fc79589522f7006c94f7beca614bcd8.tar nixlib-df8b4cc43fc79589522f7006c94f7beca614bcd8.tar.gz nixlib-df8b4cc43fc79589522f7006c94f7beca614bcd8.tar.bz2 nixlib-df8b4cc43fc79589522f7006c94f7beca614bcd8.tar.lz nixlib-df8b4cc43fc79589522f7006c94f7beca614bcd8.tar.xz nixlib-df8b4cc43fc79589522f7006c94f7beca614bcd8.tar.zst nixlib-df8b4cc43fc79589522f7006c94f7beca614bcd8.zip |
Merge pull request #182214 from DeterminateSystems/libgme-merge
game-music-emu: merge in libgme
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 ]; }; } |