mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
83 lines
1.5 KiB
Nix
83 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, fltk
|
|
, rtmidi
|
|
, libsamplerate
|
|
, libsndfile
|
|
, jack2
|
|
, alsa-lib
|
|
, libpulseaudio
|
|
, libXpm
|
|
, flac
|
|
, libogg
|
|
, libvorbis
|
|
, libopus
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "giada";
|
|
version = "unstable-2021-09-24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "monocasual";
|
|
repo = pname;
|
|
# Using master with https://github.com/monocasual/giada/pull/509 till a new release is done.
|
|
rev = "f117a8b8eef08d904ef1ab22c45f0e1fad6b8a56";
|
|
sha256 = "01hb981lrsyk870zs8xph5fm0z7bbffpkxgw04hq487r804mkx9j";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
"-w"
|
|
"-Wno-error"
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_INSTALL_BINDIR=bin"
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
rtmidi
|
|
fltk
|
|
libsndfile
|
|
libsamplerate
|
|
alsa-lib
|
|
libXpm
|
|
libpulseaudio
|
|
jack2
|
|
flac
|
|
libogg
|
|
libvorbis
|
|
libopus
|
|
];
|
|
|
|
postPatch = ''
|
|
local fixup_list=(
|
|
src/core/kernelMidi.cpp
|
|
src/gui/elems/config/tabMidi.cpp
|
|
src/utils/ver.cpp
|
|
)
|
|
for f in "''${fixup_list[@]}"; do
|
|
substituteInPlace "$f" \
|
|
--replace "<RtMidi.h>" "<${rtmidi.src}/RtMidi.h>"
|
|
done
|
|
'';
|
|
|
|
meta = with 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; [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|