2024-09-25 07:48:57 +00:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
stdenv,
|
|
|
|
|
fetchFromGitLab,
|
|
|
|
|
pkg-config,
|
|
|
|
|
gobject-introspection,
|
|
|
|
|
meson,
|
|
|
|
|
ninja,
|
|
|
|
|
perl,
|
|
|
|
|
gettext,
|
|
|
|
|
gtk-doc,
|
|
|
|
|
libxslt,
|
|
|
|
|
docbook-xsl-nons,
|
|
|
|
|
docbook_xml_dtd_412,
|
|
|
|
|
glib,
|
|
|
|
|
gusb,
|
|
|
|
|
dbus,
|
|
|
|
|
polkit,
|
|
|
|
|
nss,
|
|
|
|
|
pam,
|
|
|
|
|
systemd,
|
|
|
|
|
libfprint,
|
|
|
|
|
python3,
|
2019-09-18 00:15:57 +00:00
|
|
|
|
}:
|
2015-01-03 16:46:09 +00:00
|
|
|
|
|
2024-09-25 07:48:57 +00:00
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-05-19 12:03:31 +00:00
|
|
|
|
pname = "fprintd";
|
2024-10-15 11:30:55 +00:00
|
|
|
|
version = "1.94.4";
|
2024-09-25 07:48:57 +00:00
|
|
|
|
outputs = [
|
|
|
|
|
"out"
|
|
|
|
|
"devdoc"
|
|
|
|
|
];
|
2015-01-03 16:46:09 +00:00
|
|
|
|
|
2020-05-19 12:03:31 +00:00
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
|
owner = "libfprint";
|
2024-09-25 07:48:57 +00:00
|
|
|
|
repo = "fprintd";
|
|
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
|
|
|
hash = "sha256-B2g2d29jSER30OUqCkdk3+Hv5T3DA4SUKoyiqHb8FeU=";
|
2015-01-03 16:46:09 +00:00
|
|
|
|
};
|
|
|
|
|
|
2019-09-18 00:15:57 +00:00
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 03:51:22 +00:00
|
|
|
|
pkg-config
|
2020-05-19 12:03:31 +00:00
|
|
|
|
meson
|
|
|
|
|
ninja
|
2021-02-11 04:12:29 +00:00
|
|
|
|
perl # for pod2man
|
2020-05-19 12:03:31 +00:00
|
|
|
|
gettext
|
|
|
|
|
gtk-doc
|
2024-09-25 07:48:57 +00:00
|
|
|
|
python3
|
2020-05-19 12:03:31 +00:00
|
|
|
|
libxslt
|
2022-05-10 17:58:19 +00:00
|
|
|
|
dbus
|
2020-05-19 12:03:31 +00:00
|
|
|
|
docbook-xsl-nons
|
|
|
|
|
docbook_xml_dtd_412
|
2019-09-18 00:15:57 +00:00
|
|
|
|
];
|
2019-05-15 20:56:58 +00:00
|
|
|
|
|
2019-09-18 00:15:57 +00:00
|
|
|
|
buildInputs = [
|
|
|
|
|
glib
|
|
|
|
|
polkit
|
|
|
|
|
nss
|
|
|
|
|
pam
|
|
|
|
|
systemd
|
2020-05-19 12:03:31 +00:00
|
|
|
|
libfprint
|
|
|
|
|
];
|
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-02-11 04:12:29 +00:00
|
|
|
|
gobject-introspection # for setup hook
|
2020-05-19 12:03:31 +00:00
|
|
|
|
python-dbusmock
|
|
|
|
|
dbus-python
|
|
|
|
|
pygobject3
|
|
|
|
|
pycairo
|
|
|
|
|
pypamtest
|
2021-02-11 04:12:29 +00:00
|
|
|
|
gusb # Required by libfprint’s typelib
|
2020-05-19 12:03:31 +00:00
|
|
|
|
];
|
2015-01-03 16:46:09 +00:00
|
|
|
|
|
2020-05-19 12:03:31 +00:00
|
|
|
|
mesonFlags = [
|
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
|
"-Dpam_modules_dir=${placeholder "out"}/lib/security"
|
|
|
|
|
"-Dsysconfdir=${placeholder "out"}/etc"
|
|
|
|
|
"-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/system-services"
|
|
|
|
|
"-Dsystemd_system_unit_dir=${placeholder "out"}/lib/systemd/system"
|
2019-05-26 13:03:48 +00:00
|
|
|
|
];
|
2015-01-03 16:46:09 +00:00
|
|
|
|
|
2020-05-19 12:03:31 +00:00
|
|
|
|
PKG_CONFIG_DBUS_1_INTERFACES_DIR = "${placeholder "out"}/share/dbus-1/interfaces";
|
|
|
|
|
PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions";
|
|
|
|
|
PKG_CONFIG_DBUS_1_DATADIR = "${placeholder "out"}/share";
|
|
|
|
|
|
|
|
|
|
# FIXME: Ugly hack for tests to find libpam_wrapper.so
|
2021-01-15 09:19:50 +00:00
|
|
|
|
LIBRARY_PATH = lib.makeLibraryPath [ python3.pkgs.pypamtest ];
|
2020-05-19 12:03:31 +00:00
|
|
|
|
|
2024-03-24 00:03:26 +00:00
|
|
|
|
mesonCheckFlags = [
|
|
|
|
|
# PAM related checks are timing out
|
2024-09-25 07:48:57 +00:00
|
|
|
|
"--no-suite"
|
|
|
|
|
"fprintd:TestPamFprintd"
|
2024-03-24 00:03:26 +00:00
|
|
|
|
];
|
|
|
|
|
|
2024-08-12 15:17:10 +00:00
|
|
|
|
patches = [
|
|
|
|
|
# Skip flaky test "test_removal_during_enroll"
|
|
|
|
|
# https://gitlab.freedesktop.org/libfprint/fprintd/-/issues/129
|
|
|
|
|
./skip-test-test_removal_during_enroll.patch
|
|
|
|
|
];
|
|
|
|
|
|
2020-05-19 12:03:31 +00:00
|
|
|
|
postPatch = ''
|
2021-02-11 04:12:29 +00:00
|
|
|
|
patchShebangs \
|
|
|
|
|
po/check-translations.sh \
|
|
|
|
|
tests/unittest_inspector.py
|
2023-04-03 17:24:33 +00:00
|
|
|
|
|
|
|
|
|
# Stop tests from failing due to unhandled GTasks uncovered by GLib 2.76 bump.
|
|
|
|
|
# https://gitlab.freedesktop.org/libfprint/fprintd/-/issues/151
|
|
|
|
|
substituteInPlace tests/fprintd.py \
|
|
|
|
|
--replace "env['G_DEBUG'] = 'fatal-criticals'" ""
|
|
|
|
|
substituteInPlace tests/meson.build \
|
|
|
|
|
--replace "'G_DEBUG=fatal-criticals'," ""
|
2020-05-19 12:03:31 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2024-09-25 07:48:57 +00:00
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
|
homepage = "https://fprint.freedesktop.org/";
|
2015-01-03 16:46:09 +00:00
|
|
|
|
description = "D-Bus daemon that offers libfprint functionality over the D-Bus interprocess communication bus";
|
2024-09-25 07:48:57 +00:00
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
|
maintainers = with lib.maintainers; [ abbradar ];
|
2015-01-03 16:46:09 +00:00
|
|
|
|
};
|
2024-09-25 07:48:57 +00:00
|
|
|
|
})
|