2020-01-25 19:54:37 +00:00
|
|
|
{ thinkpad ? false
|
|
|
|
, stdenv
|
2019-09-18 01:15:57 +01:00
|
|
|
, fetchurl
|
2019-10-03 00:47:08 +01:00
|
|
|
, fetchpatch
|
2019-09-18 01:15:57 +01:00
|
|
|
, pkgconfig
|
|
|
|
, intltool
|
2020-01-25 19:54:37 +00:00
|
|
|
, libfprint-thinkpad ? null
|
|
|
|
, libfprint ? null
|
2019-09-18 01:15:57 +01:00
|
|
|
, glib
|
|
|
|
, dbus-glib
|
|
|
|
, polkit
|
|
|
|
, nss
|
|
|
|
, pam
|
|
|
|
, systemd
|
2019-10-23 22:34:09 +01:00
|
|
|
, autoreconfHook
|
|
|
|
, gtk-doc
|
2019-09-18 01:15:57 +01:00
|
|
|
}:
|
2015-01-03 16:46:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-01-25 19:54:37 +00:00
|
|
|
pname = "fprintd" + stdenv.lib.optionalString thinkpad "-thinkpad";
|
2019-09-18 01:15:57 +01:00
|
|
|
version = "0.9.0";
|
2015-01-03 16:46:09 +00:00
|
|
|
|
2015-03-29 03:05:14 +01:00
|
|
|
src = fetchurl {
|
2019-09-18 01:15:57 +01:00
|
|
|
url = "https://gitlab.freedesktop.org/libfprint/fprintd/uploads/9dec4b63d1f00e637070be1477ce63c0/fprintd-${version}.tar.xz";
|
|
|
|
sha256 = "182gcnwb6zjwmk0dn562rjmpbk7ac7dhipbfdhfic2sn1jzis49p";
|
2015-01-03 16:46:09 +00:00
|
|
|
};
|
|
|
|
|
2019-09-16 04:17:54 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.freedesktop.org/libfprint/fprintd/merge_requests/16.patch";
|
|
|
|
sha256 = "1y39zsmxjll9hip8464qwhq5qg06c13pnafyafgxdph75lvhdll7";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-09-18 01:15:57 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
intltool
|
|
|
|
pkgconfig
|
2019-10-23 22:34:09 +01:00
|
|
|
autoreconfHook # Drop with above patch
|
|
|
|
gtk-doc # Drop with above patch
|
2019-09-18 01:15:57 +01:00
|
|
|
];
|
2019-05-15 21:56:58 +01:00
|
|
|
|
2019-09-18 01:15:57 +01:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
dbus-glib
|
|
|
|
polkit
|
|
|
|
nss
|
|
|
|
pam
|
|
|
|
systemd
|
2020-01-25 19:54:37 +00:00
|
|
|
]
|
|
|
|
++ stdenv.lib.optional thinkpad libfprint-thinkpad
|
|
|
|
++ stdenv.lib.optional (!thinkpad) libfprint
|
|
|
|
;
|
2015-01-03 16:46:09 +00:00
|
|
|
|
2019-09-16 04:17:54 +01:00
|
|
|
configureFlags = [
|
2019-09-18 01:15:57 +01:00
|
|
|
# is hardcoded to /var/lib/fprint, this is for the StateDirectory install target
|
|
|
|
"--localstatedir=${placeholder "out"}/var"
|
2019-09-16 04:17:54 +01:00
|
|
|
"--sysconfdir=${placeholder "out"}/etc"
|
2019-09-18 01:15:57 +01:00
|
|
|
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
2019-05-26 14:03:48 +01:00
|
|
|
];
|
2015-01-03 16:46:09 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://fprint.freedesktop.org/";
|
2015-01-03 16:46:09 +00:00
|
|
|
description = "D-Bus daemon that offers libfprint functionality over the D-Bus interprocess communication bus";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|