2021-12-06 16:07:01 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, SDL2
|
|
|
|
, alsa-lib
|
|
|
|
, libaudec
|
|
|
|
, bash
|
|
|
|
, bash-completion
|
|
|
|
, breeze-icons
|
|
|
|
, carla
|
|
|
|
, chromaprint
|
|
|
|
, cmake
|
|
|
|
, curl
|
|
|
|
, dconf
|
|
|
|
, libepoxy
|
|
|
|
, fftw
|
|
|
|
, fftwFloat
|
|
|
|
, flex
|
|
|
|
, glib
|
2022-03-05 16:20:37 +00:00
|
|
|
, gtk4
|
|
|
|
, gtksourceview5
|
2021-12-06 16:07:01 +00:00
|
|
|
, guile
|
|
|
|
, graphviz
|
|
|
|
, help2man
|
|
|
|
, json-glib
|
|
|
|
, jq
|
|
|
|
, libbacktrace
|
|
|
|
, libcyaml
|
|
|
|
, libgtop
|
|
|
|
, libjack2
|
|
|
|
, libpulseaudio
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, libsoundio
|
|
|
|
, libxml2
|
|
|
|
, libyaml
|
|
|
|
, lilv
|
|
|
|
, lv2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pandoc
|
|
|
|
, pcre
|
|
|
|
, pcre2
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, reproc
|
|
|
|
, rtaudio
|
|
|
|
, rtmidi
|
|
|
|
, rubberband
|
|
|
|
, serd
|
|
|
|
, sord
|
|
|
|
, sratom
|
|
|
|
, texi2html
|
|
|
|
, wrapGAppsHook
|
|
|
|
, xdg-utils
|
|
|
|
, xxHash
|
|
|
|
, vamp-plugin-sdk
|
|
|
|
, zstd
|
2022-03-05 16:20:37 +00:00
|
|
|
, libadwaita
|
|
|
|
, sassc
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zrythm";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "1.0.0-alpha.28.1.3";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-ERE7I6E3+RmmpnZEtcJL/1v9a37IwFauVsbJvI9gsRQ=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
help2man
|
|
|
|
jq
|
|
|
|
libaudec
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pandoc
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
python3.pkgs.sphinx
|
|
|
|
texi2html
|
|
|
|
wrapGAppsHook
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
alsa-lib
|
|
|
|
bash-completion
|
|
|
|
carla
|
|
|
|
chromaprint
|
|
|
|
curl
|
|
|
|
dconf
|
|
|
|
libepoxy
|
|
|
|
fftw
|
|
|
|
fftwFloat
|
|
|
|
flex
|
|
|
|
breeze-icons
|
|
|
|
glib
|
2022-03-05 16:20:37 +00:00
|
|
|
gtk4
|
|
|
|
gtksourceview5
|
2021-12-06 16:07:01 +00:00
|
|
|
graphviz
|
|
|
|
guile
|
|
|
|
json-glib
|
|
|
|
libbacktrace
|
|
|
|
libcyaml
|
|
|
|
libgtop
|
|
|
|
libjack2
|
|
|
|
libpulseaudio
|
|
|
|
libsamplerate
|
|
|
|
libsndfile
|
|
|
|
libsoundio
|
|
|
|
libyaml
|
|
|
|
lilv
|
|
|
|
lv2
|
|
|
|
pcre
|
|
|
|
pcre2
|
|
|
|
reproc
|
|
|
|
rtaudio
|
|
|
|
rtmidi
|
|
|
|
rubberband
|
|
|
|
serd
|
|
|
|
sord
|
|
|
|
sratom
|
|
|
|
vamp-plugin-sdk
|
|
|
|
xdg-utils
|
|
|
|
xxHash
|
|
|
|
zstd
|
2022-03-05 16:20:37 +00:00
|
|
|
libadwaita
|
|
|
|
sassc
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2022-01-26 04:04:25 +00:00
|
|
|
"-Drtmidi=enabled"
|
|
|
|
"-Drtaudio=enabled"
|
|
|
|
"-Dsdl=enabled"
|
2022-01-03 16:56:52 +00:00
|
|
|
"-Dcarla=enabled"
|
2021-12-06 16:07:01 +00:00
|
|
|
"-Dmanpage=true"
|
|
|
|
# "-Duser_manual=true" # needs sphinx-intl
|
|
|
|
"-Dlsp_dsp=disabled"
|
|
|
|
"-Db_lto=false"
|
2021-12-19 01:06:50 +00:00
|
|
|
"-Ddebug=true"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = ''
|
|
|
|
-lfftw3_threads -lfftw3f_threads
|
|
|
|
'';
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x scripts/meson-post-install.sh
|
|
|
|
patchShebangs ext/sh-manpage-completions/run.sh scripts/generic_guile_wrap.sh \
|
|
|
|
scripts/meson-post-install.sh tools/check_have_unlimited_memlock.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix GSETTINGS_SCHEMA_DIR : "$out/share/gsettings-schemas/${pname}-${version}/glib-2.0/schemas/"
|
2022-03-05 16:20:37 +00:00
|
|
|
)
|
2021-12-06 16:07:01 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.zrythm.org";
|
|
|
|
description = "Highly automated and intuitive digital audio workstation";
|
|
|
|
maintainers = with maintainers; [ tshaynik magnetophon ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
};
|
|
|
|
}
|