mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
97 lines
1.6 KiB
Nix
97 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
fltk,
|
|
fontconfig,
|
|
fmt,
|
|
rtmidi,
|
|
libsamplerate,
|
|
libmpg123,
|
|
libsndfile,
|
|
jack2,
|
|
alsa-lib,
|
|
libpulseaudio,
|
|
libxpm,
|
|
libxrandr,
|
|
flac,
|
|
libogg,
|
|
libvorbis,
|
|
libopus,
|
|
nlohmann_json,
|
|
expat,
|
|
libGL,
|
|
curl,
|
|
webkitgtk_4_1,
|
|
gtk3,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "giada";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "monocasual";
|
|
repo = "giada";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-AceH2FO75WF/Cmk3wd6u495M277iuZp/21nBl3K4jHU=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
"-w"
|
|
"-Wno-error"
|
|
];
|
|
|
|
# fmt 12.2.0 made <fmt/core.h> a shim for <fmt/base.h>, which no longer
|
|
# declares fmt::format.
|
|
patches = [ ./fmt-12-format-header.patch ];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_INSTALL_BINDIR=bin"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
curl
|
|
expat
|
|
flac
|
|
fltk
|
|
fmt
|
|
gtk3
|
|
jack2
|
|
libGL
|
|
libxpm
|
|
libxrandr
|
|
libogg
|
|
libopus
|
|
libpulseaudio
|
|
libsamplerate
|
|
libsndfile
|
|
libvorbis
|
|
libmpg123
|
|
nlohmann_json
|
|
rtmidi
|
|
webkitgtk_4_1
|
|
]
|
|
++ lib.optionals (stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isFreeBSD) [
|
|
fontconfig
|
|
];
|
|
|
|
meta = {
|
|
description = "Free, minimal, hardcore audio tool for DJs, live performers and electronic musicians";
|
|
mainProgram = "giada";
|
|
homepage = "https://giadamusic.com/";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ kashw2 ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|