nixpkgs/pkgs/applications/audio/munt/libmt32emu.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
994 B
Nix
Raw Normal View History

2022-02-01 20:28:47 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "libmt32emu";
2022-08-01 00:15:41 +00:00
version = "2.7.0";
2022-02-01 20:28:47 +00:00
src = fetchFromGitHub {
owner = "munt";
repo = "munt";
rev = "${pname}_${lib.replaceChars [ "." ] [ "_" ] version}";
2022-08-01 00:15:41 +00:00
sha256 = "sha256-XGds9lDfSiY0D8RhYG4TGyjYEVvVYuAfNSv9+VxiJEs=";
2022-02-01 20:28:47 +00:00
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [
cmake
];
dontFixCmake = true;
cmakeFlags = [
"-Dmunt_WITH_MT32EMU_SMF2WAV=OFF"
"-Dmunt_WITH_MT32EMU_QT=OFF"
];
2022-09-27 16:19:42 +00:00
postFixup = ''
substituteInPlace "$dev"/lib/pkgconfig/mt32emu.pc \
--replace '=''${exec_prefix}//' '=/' \
--replace "$dev/$dev/" "$dev/"
'';
2022-02-01 20:28:47 +00:00
meta = with lib; {
homepage = "http://munt.sourceforge.net/";
description = "A library to emulate Roland MT-32, CM-32L, CM-64 and LAPC-I devices";
license = with licenses; [ lgpl21Plus ];
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.unix; # Not tested on ReactOS yet :)
};
}