mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
gtk 2 is unmaintained upstream and is being removed from Nixpkgs where possible. gtk 2 being disabled is already the default, so there's little reason to keep the support around.
83 lines
1.3 KiB
Nix
83 lines
1.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitLab,
|
|
|
|
# build time
|
|
pkg-config,
|
|
meson,
|
|
ninja,
|
|
sphinxygen,
|
|
doxygen,
|
|
sphinx,
|
|
python3Packages,
|
|
|
|
# runtime
|
|
lv2,
|
|
|
|
# options
|
|
withGtk3 ? true,
|
|
gtk3,
|
|
withQt5 ? true,
|
|
qt5,
|
|
withX11 ? !stdenv.hostPlatform.isDarwin,
|
|
}:
|
|
|
|
let
|
|
inherit (lib) mesonEnable;
|
|
in
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "suil";
|
|
version = "0.10.20";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "lv2";
|
|
repo = "suil";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-rP8tq+zmHrAZeuNttakPPfraFXNvnwqbhtt+LtTNV/k=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
sphinxygen
|
|
doxygen
|
|
sphinx
|
|
python3Packages.sphinx-lv2-theme
|
|
];
|
|
|
|
mesonFlags = [
|
|
(mesonEnable "gtk2" false)
|
|
(mesonEnable "gtk3" withGtk3)
|
|
(mesonEnable "qt5" withQt5)
|
|
(mesonEnable "x11" withX11)
|
|
];
|
|
|
|
buildInputs = [
|
|
lv2
|
|
]
|
|
++ lib.optionals withGtk3 [ gtk3 ]
|
|
++ lib.optionals withQt5 (
|
|
with qt5;
|
|
[
|
|
qtbase
|
|
qttools
|
|
]
|
|
++ lib.optionals withX11 [ qtx11extras ]
|
|
);
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
strictDeps = true;
|
|
|
|
meta = {
|
|
homepage = "http://drobilla.net/software/suil";
|
|
description = "Lightweight C library for loading and wrapping LV2 plugin UIs";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|