2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitLab,
|
|
|
|
|
|
|
|
# build time
|
|
|
|
pkg-config,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
|
|
|
|
# runtime
|
|
|
|
lv2,
|
|
|
|
|
|
|
|
# options
|
|
|
|
withGtk2 ? false,
|
|
|
|
gtk2,
|
|
|
|
withGtk3 ? true,
|
|
|
|
gtk3,
|
|
|
|
withQt5 ? true,
|
|
|
|
qt5,
|
|
|
|
withX11 ? !stdenv.isDarwin,
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
let
|
|
|
|
inherit (lib) mesonEnable;
|
|
|
|
in
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "suil";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.10.20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "lv2";
|
|
|
|
repo = "suil";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-rP8tq+zmHrAZeuNttakPPfraFXNvnwqbhtt+LtTNV/k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
# docs require sphinxygen
|
|
|
|
(mesonEnable "docs" false)
|
|
|
|
(mesonEnable "gtk2" withGtk2)
|
|
|
|
(mesonEnable "gtk3" withGtk3)
|
|
|
|
(mesonEnable "qt5" withQt5)
|
|
|
|
(mesonEnable "x11" withX11)
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ lv2 ]
|
|
|
|
++ lib.optionals withGtk2 [ gtk2 ]
|
|
|
|
++ lib.optionals withGtk3 [ gtk3 ]
|
|
|
|
++ lib.optionals withQt5 (
|
|
|
|
with qt5;
|
|
|
|
[
|
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
]
|
|
|
|
++ lib.optionals withX11 [ qtx11extras ]
|
|
|
|
);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://drobilla.net/software/suil";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Lightweight C library for loading and wrapping LV2 plugin UIs";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = [ ];
|
2021-12-19 01:06:50 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|