3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libfprint/default.nix

82 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-05-19 13:03:13 +01:00
, fetchFromGitLab
, pkg-config
, meson
, python3
, ninja
2020-05-19 13:03:13 +01:00
, gusb
, pixman
, glib
, nss
2020-05-19 13:03:13 +01:00
, gobject-introspection
, coreutils
2021-07-28 03:20:54 +01:00
, cairo
, libgudev
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
}:
2015-01-03 16:44:08 +00:00
stdenv.mkDerivation rec {
2020-05-19 13:03:13 +01:00
pname = "libfprint";
2021-07-28 03:20:54 +01:00
version = "1.92.1";
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-07-28 03:20:54 +01:00
sha256 = "0dpwzmwl9jjpaz44znvy3v8s9sln0c71b756rs1knk0zx8sa1qbc";
2020-05-19 13:03:13 +01:00
};
nativeBuildInputs = [
pkg-config
meson
ninja
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
2020-05-19 13:03:13 +01:00
gobject-introspection
];
2015-01-03 16:44:08 +00:00
buildInputs = [
2020-05-19 13:03:13 +01:00
gusb
pixman
glib
nss
2021-07-28 03:20:54 +01:00
cairo
libgudev
2020-05-19 13:03:13 +01:00
];
2015-01-03 16:44:08 +00:00
checkInputs = [
python3
];
mesonFlags = [
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d"
# Include virtual drivers for fprintd tests
"-Ddrivers=all"
2021-07-28 03:20:54 +01:00
"-Dudev_hwdb_dir=${placeholder "out"}/lib/udev/hwdb.d"
];
2018-12-17 18:04:26 +00:00
doCheck = true;
postPatch = ''
patchShebangs \
tests/test-runner.sh \
tests/unittest_inspector.py \
2021-07-28 03:20:54 +01:00
tests/virtual-image.py \
tests/umockdev-test.py \
tests/test-generated-hwdb.sh
'';
meta = with lib; {
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";
license = licenses.lgpl21Only;
2015-01-03 16:44:08 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
};
}