git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #53662 from gnidorah/opl3bankeditor

opl3bankeditor, opn2bankeditor: init

commit3e50fba209f373635af0cb5f8b82e356ea83198c authorElis Hirwing <elis@hirwing.se> dateMon 11 Feb 2019, 07:57 (8 years ago) parent86c39d31cb728d
3 files changed+50
pkgs/tools/audio/opl3bankeditor/default.nix+27 pkgs/tools/audio/opl3bankeditor/opn2bankeditor.nix+19 pkgs/top-level/all-packages.nix+4
pkgs/tools/audio/opl3bankeditor/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, fetchFromGitHub, cmake, qttools, alsaLib }:
2+
3+stdenv.mkDerivation rec {
4+ version = "2019-01-12";
5+ pname = "OPL3BankEditor";
6+
7+ src = fetchFromGitHub {
8+ owner = "Wohlstand";
9+ repo = pname;
10+ rev = "a254c923df5b385e140de6ae42cf4908af8728d3";
11+ sha256 = "181zkr2zkv9xy6zijbzqbqf4z6phg98ramzh9hmwi5zcbw68wkqw";
12+ fetchSubmodules = true;
13+ };
14+
15+ buildInputs = [
16+ alsaLib qttools
17+ ];
18+ nativeBuildInputs = [ cmake ];
19+
20+ meta = with stdenv.lib; {
21+ description = "A small cross-platform editor of the OPL3 FM banks of different formats";
22+ homepage = src.meta.homepage;
23+ license = licenses.gpl3;
24+ platforms = platforms.linux;
25+ maintainers = with maintainers; [ gnidorah ];
26+ };
27+}
pkgs/tools/audio/opl3bankeditor/opn2bankeditor.nixnew file+19
@@ -0,0 +1,19 @@
1+{ stdenv, opl3bankeditor, fetchFromGitHub, fetchpatch }:
2+
3+opl3bankeditor.overrideAttrs (oldAttrs: rec {
4+ version = "1.3-beta";
5+ pname = "OPN2BankEditor";
6+
7+ src = fetchFromGitHub {
8+ owner = "Wohlstand";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "0blcvqfj1yj6cmm079aw4jdzv3066jxqy9krp268i6cl2b3bmwvw";
12+ fetchSubmodules = true;
13+ };
14+
15+ # to be removed with next release
16+ postInstall = ''
17+ install -Dm755 opn2_bank_editor $out/bin/opn2_bank_editor
18+ '';
19+})
pkgs/top-level/all-packages.nix+4
@@ -4645,6 +4645,10 @@ in
46454645
46464646 olsrd = callPackage ../tools/networking/olsrd { };
46474647
4648+ opl3bankeditor = libsForQt5.callPackage ../tools/audio/opl3bankeditor { };
4649+
4650+ opn2bankeditor = callPackage ../tools/audio/opl3bankeditor/opn2bankeditor.nix { };
4651+
46484652 os-prober = callPackage ../tools/misc/os-prober {};
46494653
46504654 osl = callPackage ../development/compilers/osl { };