3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/giada/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

83 lines
1.5 KiB
Nix
Raw Normal View History

2021-10-04 23:11:33 +01:00
{ lib
, stdenv
, fetchFromGitHub
2021-10-04 23:11:33 +01:00
, cmake
, pkg-config
, fltk
, rtmidi
, libsamplerate
, libsndfile
, jack2
, alsa-lib
, libpulseaudio
, libXpm
2021-10-04 23:11:33 +01:00
, flac
, libogg
, libvorbis
, libopus
}:
2019-11-16 20:30:48 +00:00
stdenv.mkDerivation rec {
pname = "giada";
2021-10-04 23:11:33 +01:00
version = "unstable-2021-09-24";
2019-11-16 20:30:48 +00:00
src = fetchFromGitHub {
owner = "monocasual";
repo = pname;
2021-10-04 23:11:33 +01:00
# Using master with https://github.com/monocasual/giada/pull/509 till a new release is done.
rev = "f117a8b8eef08d904ef1ab22c45f0e1fad6b8a56";
sha256 = "01hb981lrsyk870zs8xph5fm0z7bbffpkxgw04hq487r804mkx9j";
fetchSubmodules = true;
2019-11-16 20:30:48 +00:00
};
2021-10-04 23:11:33 +01:00
NIX_CFLAGS_COMPILE = [
"-w"
"-Wno-error"
];
cmakeFlags = [
"-DCMAKE_INSTALL_BINDIR=bin"
"-DCMAKE_BUILD_TYPE=Release"
];
2019-11-16 20:30:48 +00:00
nativeBuildInputs = [
2021-10-04 23:11:33 +01:00
cmake
pkg-config
2019-11-16 20:30:48 +00:00
];
2019-11-16 20:30:48 +00:00
buildInputs = [
2021-10-04 23:11:33 +01:00
rtmidi
2019-11-16 20:30:48 +00:00
fltk
libsndfile
libsamplerate
alsa-lib
2021-10-04 23:11:33 +01:00
libXpm
2019-11-16 20:30:48 +00:00
libpulseaudio
2021-10-04 23:11:33 +01:00
jack2
flac
libogg
libvorbis
libopus
2019-11-16 20:30:48 +00:00
];
postPatch = ''
2021-10-04 23:11:33 +01:00
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; {
2019-11-16 20:30:48 +00:00
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;
};
}