mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
097117cf72
* Update: https://gitlab.freedesktop.org/pwithnall/malcontent/-/releases/0.8.0 * Fix the separation patch. * Add `itstool` to ui (needed for building localized help). * Use `pkg-config` instead of the `pkgconfig` alias. * Fix some issues related to multiple outputs: * Make the module pass specific output to `dbus.packages` since the `dbus` NixOS module will not generate configuration with correct interface paths otherwise. * Change `malcontent-ui` package to primarily-a-program type derivation (`out`+`lib` instead of `bin`+`out`) since there are more and more `malcontent-control`-specific assets. * This also fixes the issue where application data (desktop files, icons…) were installed to `out`, which is not installed by `environment.systemPackages`/`system-path.nix`’s `buildEnv` by default when `bin` output is also present. * Make `malcontent` package install `out` output too so that `system-path.nix` links that too. It contains the AccountsService & Polkit data files. * Split the library and PAM module out of `malcontent.out` so that they are not installed with the data files. * This revealed a bug in the `gobject-introspection` setup hook.
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{ stdenv
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gobject-introspection
|
|
, itstool
|
|
, wrapGAppsHook
|
|
, glib
|
|
, accountsservice
|
|
, dbus
|
|
, flatpak
|
|
, malcontent
|
|
, gtk3
|
|
, 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
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
dbus
|
|
polkit
|
|
glib-testing
|
|
flatpak
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
accountsservice
|
|
malcontent
|
|
glib
|
|
gtk3
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dinstalled_tests=true"
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
"-Duse_system_libmalcontent=true"
|
|
"-Dui=enabled"
|
|
];
|
|
|
|
meta = with stdenv.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;
|
|
};
|
|
}
|