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";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.26.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "monocasual";
|
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-tONxVxzOFbwnuaW6YoHVZOmgd5S11qz38hcI+yQgjrQ=";
|
2021-10-28 06:52:43 +00:00
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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"
|
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;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ kashw2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|