{ stdenv , fetchFromGitHub , autoreconfHook , fltk , jansson , rtmidi , libsamplerate , libsndfile , jack2 , alsaLib , libpulseaudio , libXpm , libXinerama , libXcursor , catch2 , nlohmann_json }: stdenv.mkDerivation rec { pname = "giada"; version = "0.16.3.1"; src = fetchFromGitHub { owner = "monocasual"; repo = pname; rev = "v${version}"; sha256 = "0z1jrkggdn630i3j59j30apaa9s242y1wiawqp4g1n9dkg3r9a1j"; }; configureFlags = [ "--target=linux" "--enable-system-catch" ]; nativeBuildInputs = [ autoreconfHook ]; buildInputs = [ fltk libsndfile libsamplerate jansson rtmidi libXpm jack2 alsaLib libpulseaudio libXinerama libXcursor catch2 nlohmann_json ]; postPatch = '' sed -i 's:"deps/json/single_include/nlohmann/json\.hpp"::' \ src/core/{conf,init,midiMapConf,patch}.cpp ''; meta = with stdenv.lib; { 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 }; }