2019-05-15 20:56:58 +00:00
|
|
|
{ thinkpad ? false
|
|
|
|
, stdenv, fetchurl, pkgconfig, intltool, libfprint-thinkpad ? null
|
2019-09-16 03:17:54 +00:00
|
|
|
, libfprint ? null, glib, dbus-glib, polkit, nss, pam, systemd, fetchpatch }:
|
2015-01-03 16:46:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-15 20:56:58 +00:00
|
|
|
pname = "fprintd" + stdenv.lib.optionalString thinkpad "-thinkpad";
|
2018-12-14 18:13:35 +00:00
|
|
|
version = "0.8.1";
|
2015-01-03 16:46:09 +00:00
|
|
|
|
2015-03-29 02:05:14 +00:00
|
|
|
src = fetchurl {
|
2018-12-14 18:13:35 +00:00
|
|
|
url = "https://gitlab.freedesktop.org/libfprint/fprintd/uploads/bdd9f91909f535368b7c21f72311704a/fprintd-${version}.tar.xz";
|
|
|
|
sha256 = "124s0g9syvglgsmqnavp2a8c0zcq8cyaph8p8iyvbla11vfizs9l";
|
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-05-15 20:56:58 +00:00
|
|
|
buildInputs = [ glib dbus-glib polkit nss pam systemd ]
|
|
|
|
++ stdenv.lib.optional thinkpad libfprint-thinkpad
|
|
|
|
++ stdenv.lib.optional (!thinkpad) libfprint;
|
|
|
|
|
2015-03-29 02:05:14 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2015-01-03 16:46:09 +00:00
|
|
|
|
2019-09-16 03:17:54 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=${placeholder "out"}/etc"
|
2019-05-26 13:03:48 +00:00
|
|
|
];
|
2015-01-03 16:46:09 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-12-14 18:13:35 +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 ];
|
|
|
|
};
|
|
|
|
}
|