2021-12-30 13:39:12 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libjack2, libsndfile, xorg, freetype
|
|
|
|
, libxkbcommon, cairo, glib, gnome, flac, libogg, libvorbis, libopus, cmake
|
|
|
|
, pango, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sfizz";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "1.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sfztools";
|
|
|
|
repo = pname;
|
2020-05-15 21:57:56 +00:00
|
|
|
rev = version;
|
2022-01-19 23:45:15 +00:00
|
|
|
sha256 = "sha256-biHsB49Ym9NU4tMOVnUNuIxPtpcIi6oCAS7JBPhxwec=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
buildInputs = [
|
|
|
|
libjack2
|
|
|
|
libsndfile
|
|
|
|
flac
|
|
|
|
libogg
|
|
|
|
libvorbis
|
|
|
|
libopus
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.libXau
|
|
|
|
xorg.libXdmcp
|
|
|
|
xorg.xcbutil
|
|
|
|
xorg.xcbutilcursor
|
|
|
|
xorg.xcbutilrenderutil
|
|
|
|
xorg.xcbutilkeysyms
|
|
|
|
xorg.xcbutilimage
|
|
|
|
libxkbcommon
|
|
|
|
cairo
|
|
|
|
glib
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.zenity
|
2021-03-20 04:20:00 +00:00
|
|
|
freetype
|
2021-12-30 13:39:12 +00:00
|
|
|
pango
|
2021-03-20 04:20:00 +00:00
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
postPatch = ''
|
2021-12-30 13:39:12 +00:00
|
|
|
substituteInPlace plugins/editor/external/vstgui4/vstgui/lib/platform/linux/x11fileselector.cpp \
|
|
|
|
--replace 'zenitypath = "zenity"' 'zenitypath = "${gnome.zenity}/bin/zenity"'
|
|
|
|
substituteInPlace plugins/editor/src/editor/NativeHelpers.cpp \
|
|
|
|
--replace '/usr/bin/zenity' '${gnome.zenity}/bin/zenity'
|
2021-03-20 04:20:00 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" "-DSFIZZ_TESTS=ON" ];
|
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
|
|
|
homepage = "https://github.com/sfztools/sfizz";
|
|
|
|
description = "SFZ jack client and LV2 plugin";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.magnetophon ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
badPlatforms = platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|