2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, gobject-introspection
|
2020-08-20 17:08:02 +00:00
|
|
|
, itstool
|
2022-10-21 18:38:19 +00:00
|
|
|
, wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, accountsservice
|
|
|
|
, dbus
|
|
|
|
, flatpak
|
|
|
|
, malcontent
|
2022-10-21 18:38:19 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, appstream
|
2020-04-24 23:36:52 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, polkit
|
|
|
|
, glib-testing
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "malcontent-ui";
|
|
|
|
|
|
|
|
inherit (malcontent) version src;
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
outputs = [ "out" "lib" "dev" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
2020-08-20 17:08:02 +00:00
|
|
|
itstool
|
2020-04-24 23:36:52 +00:00
|
|
|
desktop-file-utils
|
2022-10-21 18:38:19 +00:00
|
|
|
wrapGAppsHook4
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
appstream
|
2020-04-24 23:36:52 +00:00
|
|
|
dbus
|
|
|
|
polkit
|
|
|
|
glib-testing
|
|
|
|
flatpak
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
accountsservice
|
|
|
|
malcontent
|
|
|
|
glib
|
2022-10-21 18:38:19 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dinstalled_tests=true"
|
|
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
|
|
"-Duse_system_libmalcontent=true"
|
|
|
|
"-Dui=enabled"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "UI components for parental controls library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "malcontent-control";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://gitlab.freedesktop.org/pwithnall/malcontent";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|