depot/third_party/nixpkgs/pkgs/development/libraries/libfprint/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

60 lines
1.1 KiB
Nix

{ lib, stdenv
, fetchFromGitLab
, pkg-config
, meson
, ninja
, gusb
, pixman
, glib
, nss
, gobject-introspection
, coreutils
, gtk-doc
, docbook_xsl
, docbook_xml_dtd_43
}:
stdenv.mkDerivation rec {
pname = "libfprint";
version = "1.90.5";
outputs = [ "out" "devdoc" ];
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libfprint";
repo = pname;
rev = "v${version}";
sha256 = "1wfwka2ik4hbb5wk5dp533040sqygwswg91c3v5fvpmmixh5qx9j";
};
nativeBuildInputs = [
pkg-config
meson
ninja
gtk-doc
docbook_xsl
docbook_xml_dtd_43
gobject-introspection
];
buildInputs = [
gusb
pixman
glib
nss
];
NIX_CFLAGS_COMPILE = "-Wno-error=array-bounds";
mesonFlags = [
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d"
];
meta = with lib; {
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 ];
};
}