2020-05-09 13:23:59 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, fltk
|
|
|
|
, jansson
|
|
|
|
, rtmidi
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, jack2
|
|
|
|
, alsaLib
|
|
|
|
, libpulseaudio
|
|
|
|
, libXpm
|
|
|
|
, libXinerama
|
|
|
|
, libXcursor
|
|
|
|
, catch2
|
|
|
|
, nlohmann_json
|
|
|
|
}:
|
2019-11-16 21:30:48 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "giada";
|
2020-06-30 23:42:58 +02:00
|
|
|
version = "0.16.3";
|
2019-11-16 21:30:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "monocasual";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-30 23:42:58 +02:00
|
|
|
sha256 = "1sysv5d0wq6ib47bqsn3wdzkqzjpzjrgzg15bkllbm67hiz9abhh";
|
2019-11-16 21:30:48 +01:00
|
|
|
};
|
|
|
|
|
2020-05-09 13:23:59 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--target=linux"
|
|
|
|
"--enable-system-catch"
|
|
|
|
];
|
|
|
|
|
2019-11-16 21:30:48 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
2020-05-09 13:23:59 +02:00
|
|
|
|
2019-11-16 21:30:48 +01:00
|
|
|
buildInputs = [
|
|
|
|
fltk
|
|
|
|
libsndfile
|
|
|
|
libsamplerate
|
|
|
|
jansson
|
|
|
|
rtmidi
|
|
|
|
libXpm
|
|
|
|
jack2
|
|
|
|
alsaLib
|
|
|
|
libpulseaudio
|
|
|
|
libXinerama
|
|
|
|
libXcursor
|
2020-05-09 13:23:59 +02:00
|
|
|
catch2
|
|
|
|
nlohmann_json
|
2019-11-16 21:30:48 +01:00
|
|
|
];
|
|
|
|
|
2020-05-09 13:23:59 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -i 's:"deps/json/single_include/nlohmann/json\.hpp":<nlohmann/json.hpp>:' \
|
|
|
|
src/core/{conf,init,midiMapConf,patch}.cpp
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-11-16 21:30:48 +01: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
|
|
|
|
};
|
|
|
|
}
|