2020-01-25 19:54:37 +00:00
|
|
|
{ thinkpad ? false
|
|
|
|
, stdenv
|
2019-09-18 00:15:57 +00:00
|
|
|
, fetchurl
|
2019-10-02 23:47:08 +00:00
|
|
|
, fetchpatch
|
2019-09-18 00:15:57 +00:00
|
|
|
, pkgconfig
|
|
|
|
, intltool
|
2020-01-25 19:54:37 +00:00
|
|
|
, libfprint-thinkpad ? null
|
|
|
|
, libfprint ? null
|
2019-09-18 00:15:57 +00:00
|
|
|
, glib
|
|
|
|
, dbus-glib
|
|
|
|
, polkit
|
|
|
|
, nss
|
|
|
|
, pam
|
|
|
|
, systemd
|
2019-10-23 21:34:09 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, gtk-doc
|
2019-09-18 00:15:57 +00: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 00:15:57 +00:00
|
|
|
version = "0.9.0";
|
2015-01-03 16:46:09 +00:00
|
|
|
|
2015-03-29 02:05:14 +00:00
|
|
|
src = fetchurl {
|
2019-09-18 00:15:57 +00: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 03:17:54 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.freedesktop.org/libfprint/fprintd/merge_requests/16.patch";
|
|
|
|
sha256 = "1y39zsmxjll9hip8464qwhq5qg06c13pnafyafgxdph75lvhdll7";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-09-18 00:15:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
intltool
|
|
|
|
pkgconfig
|
2019-10-23 21:34:09 +00:00
|
|
|
autoreconfHook # Drop with above patch
|
|
|
|
gtk-doc # Drop with above patch
|
2019-09-18 00:15:57 +00:00
|
|
|
];
|
2019-05-15 20:56:58 +00:00
|
|
|
|
2019-09-18 00:15:57 +00: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 03:17:54 +00:00
|
|
|
configureFlags = [
|
2019-09-18 00:15:57 +00:00
|
|
|
# is hardcoded to /var/lib/fprint, this is for the StateDirectory install target
|
|
|
|
"--localstatedir=${placeholder "out"}/var"
|
2019-09-16 03:17:54 +00:00
|
|
|
"--sysconfdir=${placeholder "out"}/etc"
|
2019-09-18 00:15:57 +00:00
|
|
|
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
2019-05-26 13:03:48 +00:00
|
|
|
];
|
2015-01-03 16:46:09 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|