mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
10568866e0
https://gitlab.freedesktop.org/pwithnall/malcontent/-/tags/0.11.0 Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
83 lines
1.5 KiB
Nix
83 lines
1.5 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 rec {
|
|
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"
|
|
];
|
|
|
|
postPatch = ''
|
|
# https://gitlab.freedesktop.org/pwithnall/malcontent/-/merge_requests/148
|
|
substituteInPlace build-aux/meson_post_install.py \
|
|
--replace gtk-update-icon-cache gtk4-update-icon-cache
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "UI components for parental controls library";
|
|
homepage = "https://gitlab.freedesktop.org/pwithnall/malcontent";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|