567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
84 lines
1.4 KiB
Nix
84 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
gobject-introspection,
|
|
itstool,
|
|
wrapGAppsHook4,
|
|
glib,
|
|
accountsservice,
|
|
dbus,
|
|
flatpak,
|
|
malcontent,
|
|
gtk4,
|
|
libadwaita,
|
|
appstream,
|
|
desktop-file-utils,
|
|
polkit,
|
|
glib-testing,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "malcontent-ui";
|
|
|
|
inherit (malcontent) version src;
|
|
|
|
outputs = [
|
|
"out"
|
|
"lib"
|
|
"dev"
|
|
];
|
|
|
|
patches = [
|
|
# Allow installing installed tests to a separate output.
|
|
./installed-tests-path.patch
|
|
|
|
# Do not build things that are part of malcontent package
|
|
./better-separation.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gobject-introspection
|
|
itstool
|
|
desktop-file-utils
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
appstream
|
|
dbus
|
|
polkit
|
|
glib-testing
|
|
flatpak
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
accountsservice
|
|
malcontent
|
|
glib
|
|
gtk4
|
|
libadwaita
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dinstalled_tests=true"
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
"-Duse_system_libmalcontent=true"
|
|
"-Dui=enabled"
|
|
];
|
|
|
|
meta = {
|
|
description = "UI components for parental controls library";
|
|
mainProgram = "malcontent-control";
|
|
homepage = "https://gitlab.freedesktop.org/pwithnall/malcontent";
|
|
license = lib.licenses.lgpl21Plus;
|
|
maintainers = with lib.maintainers; [ jtojnar ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|