Merge pull request #182214 from DeterminateSystems/libgme-merge

game-music-emu: merge in libgme

authored by Linus Heckemann and committed by GitHub df8b4cc4 310b9955

+22 -49
+11 -3
pkgs/applications/audio/game-music-emu/default.nix
··· 1 - { lib, stdenv, fetchurl, cmake }: 1 + { lib, stdenv, fetchurl, cmake, removeReferencesTo }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "0.6.3"; ··· 9 9 sha256 = "07857vdkak306d9s5g6fhmjyxk7vijzjhkmqb15s7ihfxx9lx8xb"; 10 10 }; 11 11 cmakeFlags = lib.optionals stdenv.isDarwin [ "-DENABLE_UBSAN=OFF" ]; 12 - nativeBuildInputs = [ cmake ]; 12 + nativeBuildInputs = [ cmake removeReferencesTo ]; 13 + 14 + # It used to reference it, in the past, but thanks to the postFixup hook, now 15 + # it doesn't. 16 + disallowedReferences = [ stdenv.cc.cc ]; 17 + 18 + postFixup = lib.optionalString stdenv.isLinux '' 19 + remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)" 20 + ''; 13 21 14 22 meta = with lib; { 15 23 homepage = "https://bitbucket.org/mpyne/game-music-emu/wiki/Home"; 16 24 description = "A collection of video game music file emulators"; 17 25 license = licenses.lgpl21Plus; 18 26 platforms = platforms.all; 19 - maintainers = with maintainers; [ luc65r ]; 27 + maintainers = with maintainers; [ luc65r lheckemann ]; 20 28 }; 21 29 }
-34
pkgs/development/libraries/audio/libgme/default.nix
··· 1 - { lib, stdenv, fetchFromBitbucket, cmake, removeReferencesTo }: 2 - 3 - stdenv.mkDerivation rec { 4 - pname = "libgme"; 5 - version = "0.6.3"; 6 - 7 - meta = with lib; { 8 - description = "A collection of video game music chip emulators"; 9 - homepage = "https://bitbucket.org/mpyne/game-music-emu/overview"; 10 - license = licenses.lgpl21; 11 - platforms = platforms.all; 12 - maintainers = with maintainers; [ lheckemann ]; 13 - }; 14 - 15 - src = fetchFromBitbucket { 16 - owner = "mpyne"; 17 - repo = "game-music-emu"; 18 - rev = version; 19 - sha256 = "100ahb4n4pvgcry9xzlf2fr4j57n5h9x7pvyhhxys4dcy8axqqsy"; 20 - }; 21 - 22 - nativeBuildInputs = [ cmake removeReferencesTo ]; 23 - 24 - # These checks fail on aarch64-darwin 25 - cmakeFlags = [ "-DENABLE_UBSAN=OFF" ]; 26 - 27 - # It used to reference it, in the past, but thanks to the postFixup hook, now 28 - # it doesn't. 29 - disallowedReferences = [ stdenv.cc.cc ]; 30 - 31 - postFixup = lib.optionalString stdenv.isLinux '' 32 - remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)" 33 - ''; 34 - }
+2 -2
pkgs/development/libraries/gstreamer/bad/default.nix
··· 78 78 , libGLU 79 79 , libGL 80 80 , libintl 81 - , libgme 81 + , game-music-emu 82 82 , openssl 83 83 , x265 84 84 , libxml2 ··· 164 164 gnutls 165 165 libGL 166 166 libGLU 167 - libgme 167 + game-music-emu 168 168 openssl 169 169 libxml2 170 170 libintl
+3 -3
pkgs/games/srb2/default.nix
··· 8 8 , nasm 9 9 , libopenmpt 10 10 , p7zip 11 - , libgme 11 + , game-music-emu 12 12 , libpng 13 13 , SDL2 14 14 , SDL2_mixer ··· 48 48 49 49 buildInputs = [ 50 50 curl 51 - libgme 51 + game-music-emu 52 52 libpng 53 53 libopenmpt 54 54 SDL2 ··· 58 58 59 59 cmakeFlags = [ 60 60 "-DSRB2_ASSET_DIRECTORY=/build/source/assets" 61 - "-DGME_INCLUDE_DIR=${libgme}/include" 61 + "-DGME_INCLUDE_DIR=${game-music-emu}/include" 62 62 "-DOPENMPT_INCLUDE_DIR=${libopenmpt.dev}/include" 63 63 "-DSDL2_MIXER_INCLUDE_DIR=${SDL2_mixer}/include/SDL2" 64 64 "-DSDL2_INCLUDE_DIR=${SDL2.dev}/include/SDL2"
+3 -3
pkgs/games/srb2kart/default.nix
··· 7 7 , curl 8 8 , nasm 9 9 , unzip 10 - , libgme 10 + , game-music-emu 11 11 , libpng 12 12 , SDL2 13 13 , SDL2_mixer ··· 42 42 43 43 buildInputs = [ 44 44 curl 45 - libgme 45 + game-music-emu 46 46 libpng 47 47 SDL2 48 48 SDL2_mixer ··· 51 51 52 52 cmakeFlags = [ 53 53 #"-DSRB2_ASSET_DIRECTORY=/build/source/assets" 54 - "-DGME_INCLUDE_DIR=${libgme}/include" 54 + "-DGME_INCLUDE_DIR=${game-music-emu}/include" 55 55 "-DSDL2_MIXER_INCLUDE_DIR=${SDL2_mixer}/include/SDL2" 56 56 "-DSDL2_INCLUDE_DIR=${SDL2.dev}/include/SDL2" 57 57 ];
+2 -2
pkgs/games/zandronum/default.nix
··· 1 1 { stdenv, lib, fetchhg, cmake, pkg-config, makeWrapper, callPackage 2 - , soundfont-fluid, SDL, libGL, glew, bzip2, zlib, libjpeg, fluidsynth, openssl, gtk2, python3, libgme 2 + , soundfont-fluid, SDL, libGL, glew, bzip2, zlib, libjpeg, fluidsynth, openssl, gtk2, python3, game-music-emu 3 3 , serverOnly ? false 4 4 }: 5 5 ··· 29 29 30 30 # I have no idea why would SDL and libjpeg be needed for the server part! 31 31 # But they are. 32 - buildInputs = [ openssl bzip2 zlib SDL libjpeg sqlite libgme ] 32 + buildInputs = [ openssl bzip2 zlib SDL libjpeg sqlite game-music-emu ] 33 33 ++ lib.optionals (!serverOnly) [ libGL glew fmod fluidsynth gtk2 ]; 34 34 35 35 nativeBuildInputs = [ cmake pkg-config makeWrapper python3 ];
+1
pkgs/top-level/aliases.nix
··· 717 717 liberation_ttf_v2_from_source = throw "'liberation_ttf_v2_from_source' has been renamed to/replaced by 'liberation_ttf_v2'"; # Converted to throw 2022-02-22 718 718 liberationsansnarrow = throw "'liberationsansnarrow' has been renamed to/replaced by 'liberation-sans-narrow'"; # Converted to throw 2022-02-22 719 719 libgksu = throw "libgksu has been removed"; # Added 2022-01-16 720 + libgme = game-music-emu; # Added 2022-07-20 720 721 libgnome_keyring = throw "'libgnome_keyring' has been renamed to/replaced by 'libgnome-keyring'"; # Converted to throw 2022-02-22 721 722 libgnome_keyring3 = throw "'libgnome_keyring3' has been renamed to/replaced by 'libgnome-keyring3'"; # Converted to throw 2022-02-22 722 723 libgpgerror = libgpg-error; # Added 2021-09-04
-2
pkgs/top-level/all-packages.nix
··· 21151 21151 21152 21152 lambda-mod-zsh-theme = callPackage ../shells/zsh/lambda-mod-zsh-theme { }; 21153 21153 21154 - libgme = callPackage ../development/libraries/audio/libgme { }; 21155 - 21156 21154 librdf_raptor = callPackage ../development/libraries/librdf/raptor.nix { }; 21157 21155 21158 21156 librdf_raptor2 = callPackage ../development/libraries/librdf/raptor2.nix { };