libfprint: 1.0 -> 1.90.1
This commit is contained in:
parent
8c9dc6df61
commit
c7c90540dd
@ -1,41 +1,31 @@
|
|||||||
{ thinkpad ? false
|
{ stdenv
|
||||||
, stdenv
|
, fetchFromGitLab
|
||||||
, fetchFromGitHub
|
|
||||||
, fetchurl
|
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
, libusb1
|
, gusb
|
||||||
, pixman
|
, pixman
|
||||||
, glib
|
, glib
|
||||||
, nss
|
, nss
|
||||||
, gtk3
|
, gobject-introspection
|
||||||
, coreutils
|
, coreutils
|
||||||
, gtk-doc
|
, gtk-doc
|
||||||
, docbook_xsl
|
, docbook_xsl
|
||||||
, docbook_xml_dtd_43
|
, docbook_xml_dtd_43
|
||||||
, openssl ? null
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert thinkpad -> openssl != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libfprint" + stdenv.lib.optionalString thinkpad "-thinkpad";
|
pname = "libfprint";
|
||||||
version = "1.0";
|
version = "1.90.1";
|
||||||
|
outputs = [ "out" "devdoc" ];
|
||||||
|
|
||||||
src = {
|
src = fetchFromGitLab {
|
||||||
libfprint-thinkpad =
|
domain = "gitlab.freedesktop.org";
|
||||||
fetchFromGitHub {
|
owner = "libfprint";
|
||||||
owner = "3v1n0";
|
repo = pname;
|
||||||
repo = "libfprint";
|
rev = "v${version}";
|
||||||
rev = "2e2e3821717e9042e93a995bdbd3d00f2df0be9c";
|
sha256 = "0fdaak7qjr9b4482g7fhhqpyfdqpxq5kpmyzkp7f5i7qq2ynb78a";
|
||||||
sha256 = "1vps1wrp7hskf13f7jrv0dwry2fcid76x2w463wplngp63cj7b3b";
|
|
||||||
};
|
};
|
||||||
libfprint = fetchurl {
|
|
||||||
url = "https://gitlab.freedesktop.org/libfprint/libfprint/uploads/aff93e9921d1cff53d7c070944952ff9/libfprint-${version}.tar.xz";
|
|
||||||
sha256 = "0v84pd12v016m8iimhq39fgzamlarqccsr7d98cvrrwrzrgcixrd";
|
|
||||||
};
|
|
||||||
}.${pname};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig
|
pkgconfig
|
||||||
@ -44,28 +34,20 @@ stdenv.mkDerivation rec {
|
|||||||
gtk-doc
|
gtk-doc
|
||||||
docbook_xsl
|
docbook_xsl
|
||||||
docbook_xml_dtd_43
|
docbook_xml_dtd_43
|
||||||
|
gobject-introspection
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libusb1 # drop in 2.0 for gusb
|
gusb
|
||||||
pixman
|
pixman
|
||||||
glib
|
glib
|
||||||
nss
|
nss
|
||||||
gtk3
|
];
|
||||||
]
|
|
||||||
++ stdenv.lib.optional thinkpad openssl
|
|
||||||
;
|
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d"
|
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d"
|
||||||
"-Dx11-examples=false"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace libfprint/meson.build \
|
|
||||||
--replace /bin/echo ${coreutils}/bin/echo
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://fprint.freedesktop.org/";
|
homepage = "https://fprint.freedesktop.org/";
|
||||||
description = "A library designed to make it easy to add support for consumer fingerprint readers";
|
description = "A library designed to make it easy to add support for consumer fingerprint readers";
|
||||||
|
@ -12774,9 +12774,6 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
libfprint = callPackage ../development/libraries/libfprint { };
|
libfprint = callPackage ../development/libraries/libfprint { };
|
||||||
libfprint-thinkpad = libfprint.override {
|
|
||||||
thinkpad = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
libfpx = callPackage ../development/libraries/libfpx { };
|
libfpx = callPackage ../development/libraries/libfpx { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user