2019-11-29 17:34:29 +00:00
|
|
|
{ stdenv
|
2019-09-18 01:01:59 +01:00
|
|
|
, fetchurl
|
|
|
|
, pkgconfig
|
|
|
|
, meson
|
|
|
|
, ninja
|
2019-11-29 17:34:29 +00:00
|
|
|
, gusb
|
2019-09-18 01:01:59 +01:00
|
|
|
, pixman
|
|
|
|
, glib
|
|
|
|
, nss
|
2019-11-29 17:34:29 +00:00
|
|
|
, gobject-introspection
|
2019-09-18 01:01:59 +01:00
|
|
|
, coreutils
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
}:
|
2019-05-15 19:52:42 +01:00
|
|
|
|
2015-01-03 16:44:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-11-29 17:34:29 +00:00
|
|
|
pname = "libfprint";
|
|
|
|
version = "1.90";
|
2015-01-03 16:44:08 +00:00
|
|
|
|
2019-11-29 17:34:29 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gitlab.freedesktop.org/libfprint/libfprint/uploads/1bba17b5daa130aa548bc7ea96dc58c4/libfprint-1.90.0.tar.xz";
|
|
|
|
sha256 = "930f530df369ff874d7971f0b7c7bdb7c81597e91af4668694b98fe30b4b3371";
|
|
|
|
};
|
2019-05-15 19:52:42 +01:00
|
|
|
|
2019-09-18 01:01:59 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_43
|
2019-11-29 17:34:29 +00: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 = [
|
2019-11-29 17:34:29 +00:00
|
|
|
gusb
|
2019-09-18 01:01:59 +01:00
|
|
|
pixman
|
|
|
|
glib
|
|
|
|
nss
|
2019-11-29 17:34:29 +00:00
|
|
|
];
|
2015-01-03 16:44:08 +00:00
|
|
|
|
2019-09-18 01:01:59 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d"
|
|
|
|
"-Dx11-examples=false"
|
|
|
|
];
|
2018-12-17 18:04:26 +00:00
|
|
|
|
2019-09-18 01:01:59 +01:00
|
|
|
postPatch = ''
|
2018-12-17 18:04:26 +00:00
|
|
|
substituteInPlace libfprint/meson.build \
|
|
|
|
--replace /bin/echo ${coreutils}/bin/echo
|
|
|
|
'';
|
2015-01-03 16:44:08 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-12-17 18:04:26 +00: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";
|
2018-12-17 18:04:26 +00:00
|
|
|
license = licenses.lgpl21;
|
2015-01-03 16:44:08 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|