8 , gobject-introspection
22 stdenv.mkDerivation rec {
23 pname = "accountsservice";
26 outputs = [ "out" "dev" ];
29 url = "https://www.freedesktop.org/software/accountsservice/accountsservice-${version}.tar.xz";
30 sha256 = "kJmXp2kZ/n3BOKmgHOpwvWItWpMtvJ+xMBARMCOno5E=";
34 # Hardcode dependency paths.
36 src = ./fix-paths.patch;
37 inherit shadow coreutils;
40 # Do not try to create directories in /var, that will not work in Nix sandbox.
41 ./no-create-dirs.patch
43 # Disable mutating D-Bus methods with immutable /etc.
44 ./Disable-methods-that-change-files-in-etc.patch
46 # Do not ignore third-party (e.g Pantheon) extensions not matching FHS path scheme.
47 # Fixes https://github.com/NixOS/nixpkgs/issues/72396
48 ./drop-prefix-check-extensions.patch
59 ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
60 # meson.build:88:2: ERROR: Can not run test applications in this cross environment.
75 "-Dlocalstatedir=/var"
76 "-Dsystemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
80 chmod +x meson_post_install.py
81 patchShebangs meson_post_install.py
85 description = "D-Bus interface for user account query and manipulation";
86 homepage = "https://www.freedesktop.org/wiki/Software/AccountsService";
87 license = licenses.gpl3Plus;
88 maintainers = teams.freedesktop.members ++ (with maintainers; [ pSub ]);
89 platforms = platforms.linux;