2021-10-28 06:52:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-05-15 21:57:56 +00:00
|
|
|
, fetchFromGitHub
|
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
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "giada";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "monocasual";
|
2024-06-20 14:57:18 +00:00
|
|
|
repo = "giada";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-vTOUS9mI4B3yRNnM2dNCH7jgMuD3ztdhe1FMgXUIt58=";
|
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
|
|
|
];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
|
|
|
description = "Free, minimal, hardcore audio tool for DJs, live performers and electronic musicians";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "giada";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://giadamusic.com/";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ kashw2 ];
|
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-06-20 14:57:18 +00:00
|
|
|
})
|