2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-08-20 17:08:02 +00:00
|
|
|
, fetchFromGitHub
|
2020-09-25 04:45:31 +00:00
|
|
|
, pkg-config
|
2021-05-20 23:08:51 +00:00
|
|
|
, xxd
|
2020-08-20 17:08:02 +00:00
|
|
|
, cairo
|
2020-09-25 04:45:31 +00:00
|
|
|
, fluidsynth
|
2020-08-20 17:08:02 +00:00
|
|
|
, libX11
|
|
|
|
, libjack2
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2020-08-20 17:08:02 +00:00
|
|
|
, liblo
|
|
|
|
, libsigcxx
|
|
|
|
, libsmf
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mamba";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.3";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brummer10";
|
|
|
|
repo = "Mamba";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-Dj8yPmuEtDVgu6Gm6aEY+dgJ0dtwB8RPg9EuaVAsiIs=";
|
2020-08-20 17:08:02 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config xxd ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ cairo fluidsynth libX11 libjack2 alsa-lib liblo libsigcxx libsmf ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
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;
|
2023-11-16 04:20:00 +00:00
|
|
|
# 2023-08-19, `-Werror=format-security` fails for xputty
|
|
|
|
# reported as https://github.com/brummer10/libxputty/issues/12
|
|
|
|
broken = true;
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|