nixpkgs/pkgs/by-name/li/libfprint/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

98 lines
1.8 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitLab,
pkg-config,
meson,
python3,
ninja,
gusb,
pixman,
glib,
nss,
gobject-introspection,
cairo,
libgudev,
gtk-doc,
docbook-xsl-nons,
docbook_xml_dtd_43,
}:
2024-09-25 08:10:35 +00:00
stdenv.mkDerivation (finalAttrs: {
2020-05-19 12:03:13 +00:00
pname = "libfprint";
2024-09-25 08:04:31 +00:00
version = "1.94.8";
outputs = [
"out"
"devdoc"
];
2020-05-19 12:03:13 +00:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libfprint";
2024-09-25 08:04:31 +00:00
repo = "libfprint";
rev = "v${finalAttrs.version}";
2024-09-25 08:04:31 +00:00
hash = "sha256-PZr4ZeVnuCKYfI8CKvRqBwalxsz9Ka17kSuLflwl7mE=";
2020-05-19 12:03:13 +00:00
};
2022-11-09 18:20:37 +00:00
postPatch = ''
patchShebangs \
tests/test-runner.sh \
tests/unittest_inspector.py \
tests/virtual-image.py \
tests/umockdev-test.py \
tests/test-generated-hwdb.sh
'';
nativeBuildInputs = [
pkg-config
meson
ninja
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
2020-05-19 12:03:13 +00:00
gobject-introspection
];
2015-01-03 16:44:08 +00:00
buildInputs = [
2020-05-19 12:03:13 +00:00
gusb
pixman
glib
nss
2021-07-28 02:20:54 +00:00
cairo
libgudev
2020-05-19 12:03:13 +00:00
];
2015-01-03 16:44:08 +00:00
mesonFlags = [
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d"
# Include virtual drivers for fprintd tests
"-Ddrivers=all"
2021-07-28 02:20:54 +00:00
"-Dudev_hwdb_dir=${placeholder "out"}/lib/udev/hwdb.d"
];
2018-12-17 18:04:26 +00:00
nativeInstallCheckInputs = [
2022-11-09 18:20:37 +00:00
(python3.withPackages (p: with p; [ pygobject3 ]))
];
2022-11-09 18:20:37 +00:00
# We need to run tests _after_ install so all the paths that get loaded are in
# the right place.
doCheck = false;
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
ninjaCheckPhase
runHook postInstallCheck
'';
meta = {
homepage = "https://fprint.freedesktop.org/";
2015-01-03 16:44:08 +00:00
description = "Library designed to make it easy to add support for consumer fingerprint readers";
license = lib.licenses.lgpl21Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ abbradar ];
2015-01-03 16:44:08 +00:00
};
})