depot/third_party/nixpkgs/pkgs/development/libraries/audio/game-music-emu/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
1,012 B
Nix

{ lib, stdenv, fetchurl, cmake, removeReferencesTo, zlib }:
stdenv.mkDerivation rec {
version = "0.6.3";
pname = "game-music-emu";
src = fetchurl {
url = "https://bitbucket.org/mpyne/game-music-emu/downloads/${pname}-${version}.tar.xz";
sha256 = "07857vdkak306d9s5g6fhmjyxk7vijzjhkmqb15s7ihfxx9lx8xb";
};
cmakeFlags = [ "-DENABLE_UBSAN=OFF" ];
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.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 = "Collection of video game music file emulators";
license = licenses.lgpl21Plus;
platforms = platforms.all;
maintainers = with maintainers; [ luc65r lheckemann ];
};
}