2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-05-29 06:06:01 +00:00
|
|
|
, fetchFromGitLab
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2020-05-29 06:06:01 +00:00
|
|
|
, gusb
|
2020-04-24 23:36:52 +00:00
|
|
|
, pixman
|
|
|
|
, glib
|
|
|
|
, nss
|
2020-05-29 06:06:01 +00:00
|
|
|
, gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
, coreutils
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-05-29 06:06:01 +00:00
|
|
|
pname = "libfprint";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "1.90.5";
|
2020-05-29 06:06:01 +00:00
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "libfprint";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "1wfwka2ik4hbb5wk5dp533040sqygwswg91c3v5fvpmmixh5qx9j";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_43
|
2020-05-29 06:06:01 +00:00
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-05-29 06:06:01 +00:00
|
|
|
gusb
|
2020-04-24 23:36:52 +00:00
|
|
|
pixman
|
|
|
|
glib
|
|
|
|
nss
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=array-bounds";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://fprint.freedesktop.org/";
|
|
|
|
description = "A library designed to make it easy to add support for consumer fingerprint readers";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|