4 , gobject-introspection
24 stdenv.mkDerivation rec {
27 outputs = [ "out" "devdoc" ];
29 src = fetchFromGitLab {
30 domain = "gitlab.freedesktop.org";
34 sha256 = "sha256-shH+ctQAx4fpTMWTmo3wB45ZS38Jf8RknryPabfZ6QE=";
59 nativeCheckInputs = with python3.pkgs; [
60 gobject-introspection # for setup hook
66 gusb # Required by libfprint’s typelib
71 "-Dpam_modules_dir=${placeholder "out"}/lib/security"
72 "-Dsysconfdir=${placeholder "out"}/etc"
73 "-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/system-services"
74 "-Dsystemd_system_unit_dir=${placeholder "out"}/lib/systemd/system"
77 PKG_CONFIG_DBUS_1_INTERFACES_DIR = "${placeholder "out"}/share/dbus-1/interfaces";
78 PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions";
79 PKG_CONFIG_DBUS_1_DATADIR = "${placeholder "out"}/share";
81 # FIXME: Ugly hack for tests to find libpam_wrapper.so
82 LIBRARY_PATH = lib.makeLibraryPath [ python3.pkgs.pypamtest ];
87 # PAM related checks are timing out
88 "--no-suite" "fprintd:TestPamFprintd"
92 # Skip flaky test "test_removal_during_enroll"
93 # https://gitlab.freedesktop.org/libfprint/fprintd/-/issues/129
94 ./skip-test-test_removal_during_enroll.patch
99 po/check-translations.sh \
100 tests/unittest_inspector.py
102 # Stop tests from failing due to unhandled GTasks uncovered by GLib 2.76 bump.
103 # https://gitlab.freedesktop.org/libfprint/fprintd/-/issues/151
104 substituteInPlace tests/fprintd.py \
105 --replace "env['G_DEBUG'] = 'fatal-criticals'" ""
106 substituteInPlace tests/meson.build \
107 --replace "'G_DEBUG=fatal-criticals'," ""
111 homepage = "https://fprint.freedesktop.org/";
112 description = "D-Bus daemon that offers libfprint functionality over the D-Bus interprocess communication bus";
113 license = licenses.gpl2Plus;
114 platforms = platforms.linux;
115 maintainers = with maintainers; [ abbradar ];