2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-05-15 21:57:56 +00:00
|
|
|
, fetchFromGitHub
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchpatch
|
2021-10-28 06:52:43 +00:00
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2020-05-15 21:57:56 +00:00
|
|
|
, fltk
|
2023-05-24 13:37:59 +00:00
|
|
|
, fmt
|
2020-05-15 21:57:56 +00:00
|
|
|
, rtmidi
|
|
|
|
, libsamplerate
|
2023-05-24 13:37:59 +00:00
|
|
|
, libmpg123
|
2020-05-15 21:57:56 +00:00
|
|
|
, libsndfile
|
|
|
|
, jack2
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2020-05-15 21:57:56 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, libXpm
|
2023-05-24 13:37:59 +00:00
|
|
|
, libXrandr
|
2021-10-28 06:52:43 +00:00
|
|
|
, flac
|
|
|
|
, libogg
|
|
|
|
, libvorbis
|
|
|
|
, libopus
|
2023-05-24 13:37:59 +00:00
|
|
|
, nlohmann_json
|
2020-05-15 21:57:56 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "giada";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.24.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "monocasual";
|
|
|
|
repo = pname;
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-pKzc+RRW3o5vYaiGqW9/VjYZZJvr6cg1kdjP9qRkHwM=";
|
2021-10-28 06:52:43 +00:00
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
patches = [
|
|
|
|
# Remove when updating to the next release, this PR is already merged
|
|
|
|
# Fix fmt type error: https://github.com/monocasual/giada/pull/635
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-fmt-type-error.patch";
|
|
|
|
url = "https://github.com/monocasual/giada/commit/032af4334f6d2bb7e77a49e7aef5b4c4d696df9a.patch";
|
|
|
|
hash = "sha256-QuxETvBWzA1v2ifyNzlNMGfQ6XhYQF03sGZA9rBx1xU=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2021-10-28 06:52:43 +00:00
|
|
|
"-w"
|
|
|
|
"-Wno-error"
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_INSTALL_BINDIR=bin"
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
2020-05-15 21:57:56 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2021-10-28 06:52:43 +00:00
|
|
|
cmake
|
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-10-28 06:52:43 +00:00
|
|
|
rtmidi
|
2020-04-24 23:36:52 +00:00
|
|
|
fltk
|
2023-05-24 13:37:59 +00:00
|
|
|
fmt
|
|
|
|
libmpg123
|
2020-04-24 23:36:52 +00:00
|
|
|
libsndfile
|
|
|
|
libsamplerate
|
2023-05-24 13:37:59 +00:00
|
|
|
nlohmann_json
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2021-10-28 06:52:43 +00:00
|
|
|
libXpm
|
2020-04-24 23:36:52 +00:00
|
|
|
libpulseaudio
|
2021-10-28 06:52:43 +00:00
|
|
|
jack2
|
|
|
|
flac
|
|
|
|
libogg
|
|
|
|
libvorbis
|
|
|
|
libopus
|
2023-05-24 13:37:59 +00:00
|
|
|
libXrandr
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A free, minimal, hardcore audio tool for DJs, live performers and electronic musicians";
|
|
|
|
homepage = "https://giadamusic.com/";
|
|
|
|
license = licenses.gpl3;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|