2021-03-24 12:13:05 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
|
|
|
, libjack2, libsndfile, xorg, freetype, libxkbcommon
|
2021-05-07 23:18:14 +02:00
|
|
|
, cairo, glib, gnome, flac, libogg, libvorbis, libopus
|
2021-03-24 12:13:05 +01:00
|
|
|
, cmake, pkg-config
|
|
|
|
}:
|
2020-01-19 15:27:45 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sfizz";
|
2021-03-24 12:13:05 +01:00
|
|
|
version = "0.5.1";
|
2020-01-19 15:27:45 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sfztools";
|
|
|
|
repo = pname;
|
2020-04-04 14:17:00 +02:00
|
|
|
rev = version;
|
2021-03-24 12:13:05 +01:00
|
|
|
sha256 = "sha256-3RdY5+BPsdk6vctDy24w5aJsVOV9qzSgXs62Pm5UEKs=";
|
2020-01-19 15:27:45 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-03-24 12:13:05 +01: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-07 23:18:14 +02:00
|
|
|
gnome.zenity
|
2021-03-24 12:13:05 +01:00
|
|
|
freetype
|
|
|
|
];
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-01-19 15:27:45 +01:00
|
|
|
|
2021-03-24 12:13:05 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace editor/external/vstgui4/vstgui/lib/platform/linux/x11fileselector.cpp \
|
2021-05-07 23:18:14 +02:00
|
|
|
--replace '"/usr/bin/zenity' '"${gnome.zenity}/bin/zenity'
|
2021-03-24 12:13:05 +01:00
|
|
|
'';
|
2020-01-19 15:27:45 +01:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DSFIZZ_TESTS=ON"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-01-19 15:27:45 +01: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;
|
|
|
|
};
|
|
|
|
}
|