giada: 0.16.4 -> unstable-2021-09-24

authored by

0x4A6F and committed by
Artturin
e1aed214 107a5943

+39 -25
+39 -25
pkgs/applications/audio/giada/default.nix
··· 1 - { lib, stdenv 1 + { lib 2 + , stdenv 2 3 , fetchFromGitHub 3 - , autoreconfHook 4 + , cmake 5 + , pkg-config 4 6 , fltk 5 - , jansson 6 7 , rtmidi 7 8 , libsamplerate 8 9 , libsndfile ··· 10 11 , alsa-lib 11 12 , libpulseaudio 12 13 , libXpm 13 - , libXinerama 14 - , libXcursor 15 - , catch2 16 - , nlohmann_json 14 + , flac 15 + , libogg 16 + , libvorbis 17 + , libopus 17 18 }: 18 19 19 20 stdenv.mkDerivation rec { 20 21 pname = "giada"; 21 - version = "0.16.4"; 22 + version = "unstable-2021-09-24"; 22 23 23 24 src = fetchFromGitHub { 24 25 owner = "monocasual"; 25 26 repo = pname; 26 - rev = "v${version}"; 27 - sha256 = "0qyx0bvivlvly0vj5nnnbiks22xh13sqlw4mfgplq2lbbpgisigp"; 27 + # Using master with https://github.com/monocasual/giada/pull/509 till a new release is done. 28 + rev = "f117a8b8eef08d904ef1ab22c45f0e1fad6b8a56"; 29 + sha256 = "01hb981lrsyk870zs8xph5fm0z7bbffpkxgw04hq487r804mkx9j"; 30 + fetchSubmodules = true; 28 31 }; 29 32 30 - configureFlags = [ 31 - "--target=linux" 32 - "--enable-system-catch" 33 + NIX_CFLAGS_COMPILE = [ 34 + "-w" 35 + "-Wno-error" 36 + ]; 37 + 38 + cmakeFlags = [ 39 + "-DCMAKE_INSTALL_BINDIR=bin" 40 + "-DCMAKE_BUILD_TYPE=Release" 33 41 ]; 34 42 35 43 nativeBuildInputs = [ 36 - autoreconfHook 44 + cmake 45 + pkg-config 37 46 ]; 38 47 39 48 buildInputs = [ 49 + rtmidi 40 50 fltk 41 51 libsndfile 42 52 libsamplerate 43 - jansson 44 - rtmidi 45 - libXpm 46 - jack2 47 53 alsa-lib 54 + libXpm 48 55 libpulseaudio 49 - libXinerama 50 - libXcursor 51 - catch2 52 - nlohmann_json 56 + jack2 57 + flac 58 + libogg 59 + libvorbis 60 + libopus 53 61 ]; 54 62 55 63 postPatch = '' 56 - sed -i 's:"deps/json/single_include/nlohmann/json\.hpp":<nlohmann/json.hpp>:' \ 57 - src/core/{conf,init,midiMapConf,patch}.cpp 64 + local fixup_list=( 65 + src/core/kernelMidi.cpp 66 + src/gui/elems/config/tabMidi.cpp 67 + src/utils/ver.cpp 68 + ) 69 + for f in "''${fixup_list[@]}"; do 70 + substituteInPlace "$f" \ 71 + --replace "<RtMidi.h>" "<${rtmidi.src}/RtMidi.h>" 72 + done 58 73 ''; 59 74 60 75 meta = with lib; { ··· 63 78 license = licenses.gpl3; 64 79 maintainers = with maintainers; [ petabyteboy ]; 65 80 platforms = platforms.all; 66 - broken = stdenv.hostPlatform.isAarch64; # produces build failure on aarch64-linux 67 81 }; 68 82 }