2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2020-05-19 13:03:13 +01:00
|
|
|
, fetchFromGitLab
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-09-18 01:01:59 +01:00
|
|
|
, meson
|
2021-02-11 05:20:18 +00:00
|
|
|
, python3
|
2019-09-18 01:01:59 +01:00
|
|
|
, ninja
|
2020-05-19 13:03:13 +01:00
|
|
|
, gusb
|
2019-09-18 01:01:59 +01:00
|
|
|
, pixman
|
|
|
|
, glib
|
|
|
|
, nss
|
2020-05-19 13:03:13 +01:00
|
|
|
, gobject-introspection
|
2019-09-18 01:01:59 +01:00
|
|
|
, coreutils
|
|
|
|
, gtk-doc
|
2021-02-11 04:04:56 +00:00
|
|
|
, docbook-xsl-nons
|
2019-09-18 01:01:59 +01:00
|
|
|
, docbook_xml_dtd_43
|
|
|
|
}:
|
2019-05-15 19:52:42 +01:00
|
|
|
|
2015-01-03 16:44:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-05-19 13:03:13 +01:00
|
|
|
pname = "libfprint";
|
2021-02-11 04:04:56 +00:00
|
|
|
version = "1.90.7";
|
2020-05-19 13:03:13 +01:00
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "libfprint";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-11 04:04:56 +00:00
|
|
|
sha256 = "sha256-g/yczzCZEzUKV2uFl1MAPL1H/R2QJSwxgppI2ftt9QI=";
|
2020-05-19 13:03:13 +01:00
|
|
|
};
|
2019-05-15 19:52:42 +01:00
|
|
|
|
2019-09-18 01:01:59 +01:00
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-09-18 01:01:59 +01:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gtk-doc
|
2021-02-11 04:04:56 +00:00
|
|
|
docbook-xsl-nons
|
2019-09-18 01:01:59 +01:00
|
|
|
docbook_xml_dtd_43
|
2020-05-19 13:03:13 +01:00
|
|
|
gobject-introspection
|
2019-09-18 01:01:59 +01:00
|
|
|
];
|
2015-01-03 16:44:08 +00:00
|
|
|
|
2019-09-18 01:01:59 +01:00
|
|
|
buildInputs = [
|
2020-05-19 13:03:13 +01:00
|
|
|
gusb
|
2019-09-18 01:01:59 +01:00
|
|
|
pixman
|
|
|
|
glib
|
|
|
|
nss
|
2020-05-19 13:03:13 +01:00
|
|
|
];
|
2015-01-03 16:44:08 +00:00
|
|
|
|
2021-02-11 05:20:18 +00:00
|
|
|
checkInputs = [
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
2019-09-18 01:01:59 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d"
|
2021-02-11 05:20:18 +00:00
|
|
|
# Include virtual drivers for fprintd tests
|
|
|
|
"-Ddrivers=all"
|
2019-09-18 01:01:59 +01:00
|
|
|
];
|
2018-12-17 18:04:26 +00:00
|
|
|
|
2021-02-11 05:20:18 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs \
|
|
|
|
tests/test-runner.sh \
|
|
|
|
tests/unittest_inspector.py \
|
|
|
|
tests/virtual-image.py
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://fprint.freedesktop.org/";
|
2015-01-03 16:44:08 +00:00
|
|
|
description = "A library designed to make it easy to add support for consumer fingerprint readers";
|
2021-02-11 04:04:56 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2015-01-03 16:44:08 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|