7 changed files with 183 additions and 21 deletions
@ -0,0 +1,122 @@
@@ -0,0 +1,122 @@
|
||||
{ stdenv |
||||
, fetchFromGitHub |
||||
, SDL2 |
||||
, alsaLib |
||||
, bash |
||||
, bash-completion |
||||
, carla |
||||
, chromaprint |
||||
, ffmpeg |
||||
, fftw |
||||
, fftwFloat |
||||
, git |
||||
, gtk3 |
||||
, gtksourceview3 |
||||
, guile |
||||
, help2man |
||||
, libcyaml |
||||
, libgtop |
||||
, libjack2 |
||||
, libsamplerate |
||||
, libsndfile |
||||
, libxml2 |
||||
, libyaml |
||||
, lilv |
||||
, meson |
||||
, ninja |
||||
, pandoc |
||||
, pcre |
||||
, pkg-config |
||||
, python3 |
||||
, rtaudio |
||||
, rtmidi |
||||
, rubberband |
||||
, serd |
||||
, sord |
||||
, sratom |
||||
, texi2html |
||||
, wrapGAppsHook |
||||
, xdg_utils |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "zrythm@DASH_TRIAL@"; |
||||
version = "@ZRYTHM_PKG_VERSION@"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = pname; |
||||
repo = pname; |
||||
rev = "@ZRYTHM_GIT_VERSION@"; |
||||
sha256 = "0m7i8f5y3lvkbflys0iblkl6ksw6kn2b64k6gy10yd549n8adx69"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
audec |
||||
git |
||||
gtk3 |
||||
help2man |
||||
libxml2 |
||||
meson |
||||
ninja |
||||
pandoc |
||||
pkg-config |
||||
python3 |
||||
python3.pkgs.sphinx |
||||
texi2html |
||||
wrapGAppsHook |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
SDL2 |
||||
alsaLib |
||||
bash-completion |
||||
carla |
||||
chromaprint |
||||
ffmpeg |
||||
fftw |
||||
fftwFloat |
||||
gtksourceview3 |
||||
guile |
||||
libcyaml |
||||
libgtop |
||||
libjack2 |
||||
libsamplerate |
||||
libsndfile |
||||
libyaml |
||||
lilv |
||||
pcre |
||||
rtaudio |
||||
rtmidi |
||||
rubberband |
||||
serd |
||||
sord |
||||
sratom |
||||
xdg_utils |
||||
]; |
||||
|
||||
mesonFlags = [ |
||||
"-Denable_ffmpeg=true" |
||||
"-Denable_rtmidi=true" |
||||
"-Denable_rtaudio=true" |
||||
"-Denable_sdl=true" |
||||
"-Dmanpage=true" |
||||
"-Duser_manual=true" |
||||
]; |
||||
|
||||
postPatch = '' |
||||
chmod +x resources/gen_gtk_resources_xml_wrap.sh # patchShebangs only works on executable files |
||||
patchShebangs resources/gen_gtk_resources_xml_wrap.sh |
||||
''; |
||||
|
||||
preInstall = '' |
||||
patchShebangs meson_post_install_wrap.sh # gets created during build. |
||||
''; |
||||
|
||||
meta = with stdenv.lib; { |
||||
homepage = "https://www.zrythm.org"; |
||||
description = "highly automated and intuitive digital audio workstation"; |
||||
maintainers = [ maintainers.magnetophon ]; |
||||
platforms = platforms.linux; |
||||
license = licenses.agpl3Plus; |
||||
}; |
||||
} |
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
#!@BASH@ |
||||
|
||||
set -e |
||||
|
||||
out_pkg="$1" |
||||
|
||||
pkgbuild=$2 |
||||
zrythm_src_tarball="$3" |
||||
zrythm_src_tarball_filename="$4" |
||||
arch_pkg_filename="$5" |
||||
private_dir="$6" |
||||
|
||||
rm -rf $private_dir |
||||
mkdir -p $private_dir |
||||
cp $pkgbuild $private_dir/ |
||||
cp $zrythm_src_tarball $private_dir/ |
||||
|
||||
# build manuals |
||||
pushd $private_dir |
||||
makepkg -f |
||||
popd |
||||
|
||||
cp $private_dir/*.pkg.tar.zst $out_pkg |
Loading…
Reference in new issue