nixpkgs/pkgs/by-name/sf/sfizz/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.6 KiB
Nix
Raw Normal View History

2021-12-26 20:40:20 +00:00
{ lib, stdenv, fetchFromGitHub, libjack2, libsndfile, xorg, freetype
, libxkbcommon, cairo, glib, zenity, flac, libogg, libvorbis, libopus, cmake
, pango, pkg-config, catch2
}:
2020-01-19 14:27:45 +00:00
stdenv.mkDerivation rec {
pname = "sfizz";
2023-05-12 16:33:37 +00:00
version = "1.2.1";
2020-01-19 14:27:45 +00:00
src = fetchFromGitHub {
owner = "sfztools";
repo = pname;
2020-04-04 12:17:00 +00:00
rev = version;
hash = "sha256-/G9tvJ4AcBSTmo44xDDKf6et1nSn/FV5m27ztDu10kI=";
2020-01-19 14:27:45 +00:00
fetchSubmodules = true;
};
2021-03-24 11:13:05 +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
zenity
2021-03-24 11:13:05 +00:00
freetype
2021-12-26 20:40:20 +00:00
pango
2021-03-24 11:13:05 +00:00
];
nativeBuildInputs = [ cmake pkg-config ];
2020-01-19 14:27:45 +00:00
2024-01-14 14:54:44 +00:00
# Fix missing include
patches = [./gcc13.patch];
2021-03-24 11:13:05 +00:00
postPatch = ''
cp ${catch2}/include/catch2/catch.hpp tests/catch2/catch.hpp
2021-12-26 20:40:20 +00:00
substituteInPlace plugins/editor/external/vstgui4/vstgui/lib/platform/linux/x11fileselector.cpp \
--replace 'zenitypath = "zenity"' 'zenitypath = "${zenity}/bin/zenity"'
2021-12-26 20:40:20 +00:00
substituteInPlace plugins/editor/src/editor/NativeHelpers.cpp \
--replace '/usr/bin/zenity' '${zenity}/bin/zenity'
2021-03-24 11:13:05 +00:00
'';
2020-01-19 14:27:45 +00:00
cmakeFlags = [ "-DSFIZZ_TESTS=ON" ];
2020-01-19 14:27:45 +00:00
doCheck = true;
meta = with lib; {
2020-01-19 14:27:45 +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;
};
}