2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-08-03 17:37:02 +00:00
|
|
|
, fetchFromGitHub
|
2020-09-06 03:25:28 +00:00
|
|
|
, pkg-config
|
2021-05-09 04:55:26 +00:00
|
|
|
, xxd
|
2020-08-03 17:37:02 +00:00
|
|
|
, cairo
|
2020-09-06 03:25:28 +00:00
|
|
|
, fluidsynth
|
2020-08-16 09:30:11 +00:00
|
|
|
, libX11
|
2020-08-03 17:37:02 +00:00
|
|
|
, libjack2
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2020-08-03 17:37:02 +00:00
|
|
|
, liblo
|
2020-08-16 09:30:11 +00:00
|
|
|
, libsigcxx
|
|
|
|
, libsmf
|
2020-08-03 17:37:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mamba";
|
2022-07-28 23:04:11 +00:00
|
|
|
version = "2.3";
|
2020-08-03 17:37:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brummer10";
|
|
|
|
repo = "Mamba";
|
|
|
|
rev = "v${version}";
|
2022-07-28 23:04:11 +00:00
|
|
|
sha256 = "sha256-Dj8yPmuEtDVgu6Gm6aEY+dgJ0dtwB8RPg9EuaVAsiIs=";
|
2020-08-03 17:37:02 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-05-09 04:55:26 +00:00
|
|
|
nativeBuildInputs = [ pkg-config xxd ];
|
2021-06-10 02:57:09 +00:00
|
|
|
buildInputs = [ cairo fluidsynth libX11 libjack2 alsa-lib liblo libsigcxx libsmf ];
|
2020-08-03 17:37:02 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2020-08-16 09:30:11 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-03 17:37:02 +00:00
|
|
|
homepage = "https://github.com/brummer10/Mamba";
|
|
|
|
description = "Virtual MIDI keyboard for Jack Audio Connection Kit";
|
|
|
|
license = licenses.bsd0;
|
2020-08-16 09:30:11 +00:00
|
|
|
maintainers = with maintainers; [ magnetophon orivej ];
|
|
|
|
platforms = platforms.linux;
|
2020-08-03 17:37:02 +00:00
|
|
|
};
|
|
|
|
}
|