2019-01-08 15:51:01 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libjack2, alsaLib
|
|
|
|
, freetype, libX11, libXrandr, libXinerama, libXext, libXcursor
|
|
|
|
, adlplugChip ? "-DADLplug_CHIP=OPL3"
|
|
|
|
, pname ? "ADLplug" }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-17 17:21:31 +00:00
|
|
|
inherit pname;
|
2019-06-12 18:31:44 +01:00
|
|
|
version = "1.0.1";
|
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}";
|
2019-06-12 18:31:44 +01:00
|
|
|
sha256 = "0n9srdlgl1j528ap5xmllrqs1w6ibc5yf9sphvl1q9kjnizxrs2c";
|
2019-01-08 15:51:01 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [ adlplugChip ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libjack2 alsaLib freetype libX11 libXrandr libXinerama libXext
|
|
|
|
libXcursor
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-06-12 18:31:44 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|