Added support for libfprint 1.90
This commit is contained in:
@@ -1,41 +1,27 @@
|
||||
{ thinkpad ? false
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, pkgconfig
|
||||
, meson
|
||||
, ninja
|
||||
, libusb
|
||||
, gusb
|
||||
, pixman
|
||||
, glib
|
||||
, nss
|
||||
, gtk3
|
||||
, gobject-introspection
|
||||
, coreutils
|
||||
, gtk-doc
|
||||
, docbook_xsl
|
||||
, docbook_xml_dtd_43
|
||||
, openssl ? null
|
||||
}:
|
||||
|
||||
assert thinkpad -> openssl != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libfprint" + stdenv.lib.optionalString thinkpad "-thinkpad";
|
||||
version = "1.0";
|
||||
pname = "libfprint";
|
||||
version = "1.90";
|
||||
|
||||
src = {
|
||||
libfprint-thinkpad =
|
||||
fetchFromGitHub {
|
||||
owner = "3v1n0";
|
||||
repo = "libfprint";
|
||||
rev = "2e2e3821717e9042e93a995bdbd3d00f2df0be9c";
|
||||
sha256 = "1vps1wrp7hskf13f7jrv0dwry2fcid76x2w463wplngp63cj7b3b";
|
||||
};
|
||||
libfprint = fetchurl {
|
||||
url = "https://gitlab.freedesktop.org/libfprint/libfprint/uploads/aff93e9921d1cff53d7c070944952ff9/libfprint-${version}.tar.xz";
|
||||
sha256 = "0v84pd12v016m8iimhq39fgzamlarqccsr7d98cvrrwrzrgcixrd";
|
||||
};
|
||||
}.${pname};
|
||||
src = fetchurl {
|
||||
url = "https://gitlab.freedesktop.org/libfprint/libfprint/uploads/1bba17b5daa130aa548bc7ea96dc58c4/libfprint-1.90.0.tar.xz";
|
||||
sha256 = "930f530df369ff874d7971f0b7c7bdb7c81597e91af4668694b98fe30b4b3371";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
@@ -44,17 +30,15 @@ stdenv.mkDerivation rec {
|
||||
gtk-doc
|
||||
docbook_xsl
|
||||
docbook_xml_dtd_43
|
||||
gobject-introspection
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libusb
|
||||
gusb
|
||||
pixman
|
||||
glib
|
||||
nss
|
||||
gtk3
|
||||
]
|
||||
++ stdenv.lib.optional thinkpad openssl
|
||||
;
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dudev_rules_dir=${placeholder "out"}/lib/udev/rules.d"
|
||||
|
||||
Reference in New Issue
Block a user