diff options
author | Orivej Desh (NixOS) <40807862+orivej-nixos@users.noreply.github.com> | 2020-08-16 18:33:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-16 18:33:12 +0000 |
commit | c8003b550a28e320b1b484ae98b2b4bbeb614978 (patch) | |
tree | f7fca6dfbb20b469d13ce8627f2c35dde8ce7a51 | |
parent | 431b08cafddd022f5e49ef3f46cf83d863a038ae (diff) | |
parent | ccd76df5b994714e16e49e54034d7500a3dd5de8 (diff) |
mamba: init at 1.3 (#94615)
* mamba: init at 1.1
* mamba: 1.1 -> 1.3
Co-authored-by: Orivej Desh <orivej@gmx.fr>
-rw-r--r-- | pkgs/applications/audio/mamba/default.nix | 40 | ||||
-rw-r--r-- | pkgs/applications/audio/mamba/fix-build.patch | 10 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/audio/mamba/default.nix b/pkgs/applications/audio/mamba/default.nix new file mode 100644 index 000000000000..a3e33471cee8 --- /dev/null +++ b/pkgs/applications/audio/mamba/default.nix @@ -0,0 +1,40 @@ +{ stdenv +, fetchFromGitHub +, pkgconfig +, cairo +, libX11 +, libjack2 +, liblo +, libsigcxx +, libsmf +}: + +stdenv.mkDerivation rec { + pname = "mamba"; + version = "1.3"; + + src = fetchFromGitHub { + owner = "brummer10"; + repo = "Mamba"; + rev = "v${version}"; + sha256 = "1wa3f9c4l239mpxa7nxx8hajy4icn40vpvaxq5l1qzskl74w072d"; + fetchSubmodules = true; + }; + + patches = [ ./fix-build.patch ]; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ cairo libX11 libjack2 liblo libsigcxx libsmf ]; + + makeFlags = [ "PREFIX=$(out)" ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + homepage = "https://github.com/brummer10/Mamba"; + description = "Virtual MIDI keyboard for Jack Audio Connection Kit"; + license = licenses.bsd0; + maintainers = with maintainers; [ magnetophon orivej ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/audio/mamba/fix-build.patch b/pkgs/applications/audio/mamba/fix-build.patch new file mode 100644 index 000000000000..ed366963676c --- /dev/null +++ b/pkgs/applications/audio/mamba/fix-build.patch @@ -0,0 +1,10 @@ +--- a/libxputty/Build/Makefile ++++ b/libxputty/Build/Makefile +@@ -20,1 +20,1 @@ +- LDFLAGS += -fPIC `pkg-config --static --cflags --libs cairo x11` -lm ++ LDFLAGS += -fPIC `pkg-config --cflags --libs cairo x11` -lm +--- a/src/Makefile ++++ b/src/Makefile +@@ -84,1 +83,1 @@ ifneq ("$(wildcard ./$(BUILD_DIR))","") +- update-desktop-database ++ update-desktop-database || true diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2fb6ee80aca2..2a9abfc0c7cc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26377,6 +26377,8 @@ in icu = icu58; }; + mamba = callPackage ../applications/audio/mamba{ }; + mame = libsForQt5.callPackage ../misc/emulators/mame { inherit (darwin.apple_sdk.frameworks) CoreAudioKit ForceFeedback; }; |