1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 17:25:11 +00:00
nixpkgs/pkgs/applications/audio/giada/default.nix
Pavol Rusnak cfe68f2b68 giada: 0.16.1 -> 0.16.2.2
+ use system catch and nlohmann_json
2020-05-09 13:46:15 +02:00

69 lines
1.3 KiB
Nix

{ 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.2.2";
src = fetchFromGitHub {
owner = "monocasual";
repo = pname;
rev = "v${version}";
sha256 = "0rpg5qmw3b76xcra869shb8fwk5wfzpzw216n96hxa5s6k69cm0p";
};
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":<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
};
}