I'm not sure what the hash here refers to, but it substitutes, and it
contains a version of the source that still tries to link with
libubsan, so the build fails.
Fixes: e65c57cbbc5d ("game-music-emu: 0.6.3 -> 0.6.4 | source migration")
42 lines
966 B
Nix
42 lines
966 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
removeReferencesTo,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.6.4";
|
|
pname = "game-music-emu";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libgme";
|
|
repo = "game-music-emu";
|
|
tag = version;
|
|
hash = "sha256-qGNWFFUUjv2R5e/nQrriAyDJCARISqNB8e5/1zEJ3fk=";
|
|
};
|
|
nativeBuildInputs = [
|
|
cmake
|
|
removeReferencesTo
|
|
];
|
|
buildInputs = [ zlib ];
|
|
|
|
# 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.hostPlatform.isLinux ''
|
|
remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/libgme/game-music-emu/";
|
|
description = "Collection of video game music file emulators";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|