2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, removeReferencesTo, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "0.6.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "game-music-emu";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-05 17:05:55 +00:00
|
|
|
url = "https://bitbucket.org/mpyne/game-music-emu/downloads/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "07857vdkak306d9s5g6fhmjyxk7vijzjhkmqb15s7ihfxx9lx8xb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
cmakeFlags = [ "-DENABLE_UBSAN=OFF" ];
|
2022-09-09 14:08:57 +00:00
|
|
|
nativeBuildInputs = [ cmake removeReferencesTo ];
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [ zlib ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
# 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)"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://bitbucket.org/mpyne/game-music-emu/wiki/Home";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Collection of video game music file emulators";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.all;
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = with maintainers; [ luc65r ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|