2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, libjack2, alsaLib
|
2019-01-08 15:51:01 +00:00
|
|
|
, freetype, libX11, libXrandr, libXinerama, libXext, libXcursor
|
2020-08-06 06:21:31 +00:00
|
|
|
, fetchpatch, fmt
|
2019-01-08 15:51:01 +00:00
|
|
|
, adlplugChip ? "-DADLplug_CHIP=OPL3"
|
|
|
|
, pname ? "ADLplug" }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-17 17:21:31 +00:00
|
|
|
inherit pname;
|
2020-08-06 06:21:31 +00:00
|
|
|
version = "1.0.2";
|
2019-01-08 15:51:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jpcima";
|
|
|
|
repo = "ADLplug";
|
2019-03-17 17:21:31 +00:00
|
|
|
rev = "v${version}";
|
2020-08-06 06:21:31 +00:00
|
|
|
sha256 = "0mqx4bzri8s880v7jwd24nb93m5i3aklqld0b3h0hjnz0lh2qz0f";
|
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;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-08-06 06:21:31 +00:00
|
|
|
cmakeFlags = [ adlplugChip "-DADLplug_USE_SYSTEM_FMT=ON" ];
|
2019-01-08 15:51:01 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libjack2 alsaLib freetype libX11 libXrandr libXinerama libXext
|
|
|
|
libXcursor
|
|
|
|
];
|
2020-08-06 06:21:31 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig fmt ];
|
2019-01-08 15:51:01 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-12 17:31:44 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|