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 2 , fetchFromGitHub 3 - , autoreconfHook 4 , fltk 5 - , jansson 6 , rtmidi 7 , libsamplerate 8 , libsndfile ··· 10 , alsa-lib 11 , libpulseaudio 12 , libXpm 13 - , libXinerama 14 - , libXcursor 15 - , catch2 16 - , nlohmann_json 17 }: 18 19 stdenv.mkDerivation rec { 20 pname = "giada"; 21 - version = "0.16.4"; 22 23 src = fetchFromGitHub { 24 owner = "monocasual"; 25 repo = pname; 26 - rev = "v${version}"; 27 - sha256 = "0qyx0bvivlvly0vj5nnnbiks22xh13sqlw4mfgplq2lbbpgisigp"; 28 }; 29 30 - configureFlags = [ 31 - "--target=linux" 32 - "--enable-system-catch" 33 ]; 34 35 nativeBuildInputs = [ 36 - autoreconfHook 37 ]; 38 39 buildInputs = [ 40 fltk 41 libsndfile 42 libsamplerate 43 - jansson 44 - rtmidi 45 - libXpm 46 - jack2 47 alsa-lib 48 libpulseaudio 49 - libXinerama 50 - libXcursor 51 - catch2 52 - nlohmann_json 53 ]; 54 55 postPatch = '' 56 - sed -i 's:"deps/json/single_include/nlohmann/json\.hpp":<nlohmann/json.hpp>:' \ 57 - src/core/{conf,init,midiMapConf,patch}.cpp 58 ''; 59 60 meta = with lib; { ··· 63 license = licenses.gpl3; 64 maintainers = with maintainers; [ petabyteboy ]; 65 platforms = platforms.all; 66 - broken = stdenv.hostPlatform.isAarch64; # produces build failure on aarch64-linux 67 }; 68 }
··· 1 + { lib 2 + , stdenv 3 , fetchFromGitHub 4 + , cmake 5 + , pkg-config 6 , fltk 7 , rtmidi 8 , libsamplerate 9 , libsndfile ··· 11 , alsa-lib 12 , libpulseaudio 13 , libXpm 14 + , flac 15 + , libogg 16 + , libvorbis 17 + , libopus 18 }: 19 20 stdenv.mkDerivation rec { 21 pname = "giada"; 22 + version = "unstable-2021-09-24"; 23 24 src = fetchFromGitHub { 25 owner = "monocasual"; 26 repo = pname; 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; 31 }; 32 33 + NIX_CFLAGS_COMPILE = [ 34 + "-w" 35 + "-Wno-error" 36 + ]; 37 + 38 + cmakeFlags = [ 39 + "-DCMAKE_INSTALL_BINDIR=bin" 40 + "-DCMAKE_BUILD_TYPE=Release" 41 ]; 42 43 nativeBuildInputs = [ 44 + cmake 45 + pkg-config 46 ]; 47 48 buildInputs = [ 49 + rtmidi 50 fltk 51 libsndfile 52 libsamplerate 53 alsa-lib 54 + libXpm 55 libpulseaudio 56 + jack2 57 + flac 58 + libogg 59 + libvorbis 60 + libopus 61 ]; 62 63 postPatch = '' 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 73 ''; 74 75 meta = with lib; { ··· 78 license = licenses.gpl3; 79 maintainers = with maintainers; [ petabyteboy ]; 80 platforms = platforms.all; 81 }; 82 }