From 5bce172b87ad998a5b48df07dbb2119247da7478 Mon Sep 17 00:00:00 2001 From: gnidorah Date: Tue, 8 Jan 2019 18:51:01 +0300 Subject: [PATCH] adlplug, opnplug: init at 1.0.0-beta.5 --- pkgs/applications/audio/adlplug/default.nix | 33 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 7 +++++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/applications/audio/adlplug/default.nix diff --git a/pkgs/applications/audio/adlplug/default.nix b/pkgs/applications/audio/adlplug/default.nix new file mode 100644 index 000000000000..35c7d316dd16 --- /dev/null +++ b/pkgs/applications/audio/adlplug/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub, cmake, pkgconfig, libjack2, alsaLib +, freetype, libX11, libXrandr, libXinerama, libXext, libXcursor +, adlplugChip ? "-DADLplug_CHIP=OPL3" +, pname ? "ADLplug" }: + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + version = "v1.0.0-beta.5"; + + src = fetchFromGitHub { + owner = "jpcima"; + repo = "ADLplug"; + rev = version; + sha256 = "1f8v61nv33xwpzmmk38dkr3fvm2j2xf0a74agxnl9p1yvy3a9w3s"; + fetchSubmodules = true; + }; + + cmakeFlags = [ adlplugChip ]; + + buildInputs = [ + libjack2 alsaLib freetype libX11 libXrandr libXinerama libXext + libXcursor + ]; + nativeBuildInputs = [ cmake pkgconfig ]; + + meta = with stdenv.lib; { + description = "Synthesizer plugin for ADLMIDI and OPNMIDI (VST/LV2)"; + homepage = src.meta.homepage; + license = licenses.boost; + platforms = platforms.linux; + maintainers = with maintainers; [ gnidorah ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7961a049a9a0..e210c4a19c80 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -464,6 +464,13 @@ in actkbd = callPackage ../tools/system/actkbd { }; + adlplug = callPackage ../applications/audio/adlplug { }; + + opnplug = callPackage ../applications/audio/adlplug { + adlplugChip = "-DADLplug_CHIP=OPN2"; + pname = "OPNplug"; + }; + advancecomp = callPackage ../tools/compression/advancecomp {}; aefs = callPackage ../tools/filesystems/aefs { };