nixpkgs/pkgs/applications/audio/adlplug/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2019-01-08 15:51:01 +00:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libjack2, alsaLib
, freetype, libX11, libXrandr, libXinerama, libXext, libXcursor
2019-11-06 23:50:01 +00:00
, fetchpatch
2019-01-08 15:51:01 +00:00
, adlplugChip ? "-DADLplug_CHIP=OPL3"
, pname ? "ADLplug" }:
stdenv.mkDerivation rec {
inherit pname;
version = "1.0.1";
2019-01-08 15:51:01 +00:00
src = fetchFromGitHub {
owner = "jpcima";
repo = "ADLplug";
rev = "v${version}";
sha256 = "0n9srdlgl1j528ap5xmllrqs1w6ibc5yf9sphvl1q9kjnizxrs2c";
2019-01-08 15:51:01 +00:00
fetchSubmodules = true;
};
2019-11-06 23:50:01 +00:00
patches = [
(fetchpatch {
url = "https://raw.githubusercontent.com/jpcima/ADLplug/83636c55bec1b86cabf634b9a6d56d07f00ecc61/resources/patch/juce-gcc9.patch";
sha256 = "15hkdb76n9lgjsrpczj27ld9b4804bzrgw89g95cj4sc8wwkplyy";
extraPrefix = "thirdparty/JUCE/";
stripLen = 1;
})
];
2019-01-08 15:51:01 +00:00
cmakeFlags = [ adlplugChip ];
buildInputs = [
libjack2 alsaLib freetype libX11 libXrandr libXinerama libXext
libXcursor
];
nativeBuildInputs = [ cmake pkgconfig ];
meta = with stdenv.lib; {
description = "OPL3 and OPN2 FM Chip Synthesizer";
2019-01-08 15:51:01 +00:00
homepage = src.meta.homepage;
license = licenses.boost;
platforms = platforms.linux;
maintainers = with maintainers; [ gnidorah ];
};
}