mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
45 lines
995 B
Nix
45 lines
995 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmt32emu";
|
|
version = "2.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "munt";
|
|
repo = "munt";
|
|
rev = "${pname}_${lib.replaceStrings [ "." ] [ "_" ] version}";
|
|
sha256 = "sha256-zY1AFcm8uvFkrKUZHsqtKY2CYTY4bWmkTJ7bZPqXoxk=";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
dontFixCmake = true;
|
|
|
|
cmakeFlags = [
|
|
"-Dmunt_WITH_MT32EMU_SMF2WAV=OFF"
|
|
"-Dmunt_WITH_MT32EMU_QT=OFF"
|
|
];
|
|
|
|
postFixup = ''
|
|
substituteInPlace "$dev"/lib/pkgconfig/mt32emu.pc \
|
|
--replace '=''${exec_prefix}//' '=/' \
|
|
--replace "$dev/$dev/" "$dev/"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://munt.sourceforge.net/";
|
|
description = "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 :)
|
|
};
|
|
}
|