diff --git a/pkgs/tools/audio/opl3bankeditor/default.nix b/pkgs/tools/audio/opl3bankeditor/default.nix new file mode 100644 index 000000000000..fba85e0f5f00 --- /dev/null +++ b/pkgs/tools/audio/opl3bankeditor/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub, cmake, qttools, alsaLib }: + +stdenv.mkDerivation rec { + version = "2019-01-12"; + pname = "OPL3BankEditor"; + + src = fetchFromGitHub { + owner = "Wohlstand"; + repo = pname; + rev = "a254c923df5b385e140de6ae42cf4908af8728d3"; + sha256 = "181zkr2zkv9xy6zijbzqbqf4z6phg98ramzh9hmwi5zcbw68wkqw"; + fetchSubmodules = true; + }; + + buildInputs = [ + alsaLib qttools + ]; + nativeBuildInputs = [ cmake ]; + + meta = with stdenv.lib; { + description = "A small cross-platform editor of the OPL3 FM banks of different formats"; + homepage = src.meta.homepage; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ gnidorah ]; + }; +} diff --git a/pkgs/tools/audio/opl3bankeditor/opn2bankeditor.nix b/pkgs/tools/audio/opl3bankeditor/opn2bankeditor.nix new file mode 100644 index 000000000000..b79dfeb12d80 --- /dev/null +++ b/pkgs/tools/audio/opl3bankeditor/opn2bankeditor.nix @@ -0,0 +1,19 @@ +{ stdenv, opl3bankeditor, fetchFromGitHub, fetchpatch }: + +opl3bankeditor.overrideAttrs (oldAttrs: rec { + version = "1.3-beta"; + pname = "OPN2BankEditor"; + + src = fetchFromGitHub { + owner = "Wohlstand"; + repo = pname; + rev = version; + sha256 = "0blcvqfj1yj6cmm079aw4jdzv3066jxqy9krp268i6cl2b3bmwvw"; + fetchSubmodules = true; + }; + + # to be removed with next release + postInstall = '' + install -Dm755 opn2_bank_editor $out/bin/opn2_bank_editor + ''; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3feae1858d07..997fbd7ed732 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4645,6 +4645,10 @@ in olsrd = callPackage ../tools/networking/olsrd { }; + opl3bankeditor = libsForQt5.callPackage ../tools/audio/opl3bankeditor { }; + + opn2bankeditor = callPackage ../tools/audio/opl3bankeditor/opn2bankeditor.nix { }; + os-prober = callPackage ../tools/misc/os-prober {}; osl = callPackage ../development/compilers/osl { };