2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-05-15 21:57:56 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, fltk
|
|
|
|
, jansson
|
|
|
|
, rtmidi
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, jack2
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2020-05-15 21:57:56 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, libXpm
|
|
|
|
, libXinerama
|
|
|
|
, libXcursor
|
|
|
|
, catch2
|
|
|
|
, nlohmann_json
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "giada";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "0.16.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "monocasual";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "0qyx0bvivlvly0vj5nnnbiks22xh13sqlw4mfgplq2lbbpgisigp";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--target=linux"
|
|
|
|
"--enable-system-catch"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
fltk
|
|
|
|
libsndfile
|
|
|
|
libsamplerate
|
|
|
|
jansson
|
|
|
|
rtmidi
|
|
|
|
libXpm
|
|
|
|
jack2
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
libpulseaudio
|
|
|
|
libXinerama
|
|
|
|
libXcursor
|
2020-05-15 21:57:56 +00:00
|
|
|
catch2
|
|
|
|
nlohmann_json
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i 's:"deps/json/single_include/nlohmann/json\.hpp":<nlohmann/json.hpp>:' \
|
|
|
|
src/core/{conf,init,midiMapConf,patch}.cpp
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A free, minimal, hardcore audio tool for DJs, live performers and electronic musicians";
|
|
|
|
homepage = "https://giadamusic.com/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ petabyteboy ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
broken = stdenv.hostPlatform.isAarch64; # produces build failure on aarch64-linux
|
|
|
|
};
|
|
|
|
}
|