nixpkgs/pkgs/tools/security/fprintd/default.nix

65 lines
1.4 KiB
Nix
Raw Normal View History

2019-11-29 17:34:29 +00:00
{ stdenv
, fetchurl
, fetchpatch
, pkgconfig
, intltool
2019-11-29 17:34:29 +00:00
, libfprint
, glib
, dbus-glib
, polkit
, nss
, pam
, systemd
2019-10-23 21:34:09 +00:00
, autoreconfHook
, gtk-doc
}:
2015-01-03 16:46:09 +00:00
stdenv.mkDerivation rec {
2019-11-29 17:34:29 +00:00
pname = "fprintd";
version = "0.9.0";
2015-01-03 16:46:09 +00:00
2015-03-29 02:05:14 +00:00
src = fetchurl {
url = "https://gitlab.freedesktop.org/libfprint/fprintd/uploads/9dec4b63d1f00e637070be1477ce63c0/fprintd-${version}.tar.xz";
sha256 = "182gcnwb6zjwmk0dn562rjmpbk7ac7dhipbfdhfic2sn1jzis49p";
2015-01-03 16:46:09 +00:00
};
patches = [
(fetchpatch {
url = "https://gitlab.freedesktop.org/libfprint/fprintd/merge_requests/16.patch";
sha256 = "1y39zsmxjll9hip8464qwhq5qg06c13pnafyafgxdph75lvhdll7";
})
];
nativeBuildInputs = [
intltool
pkgconfig
2019-10-23 21:34:09 +00:00
autoreconfHook # Drop with above patch
gtk-doc # Drop with above patch
];
buildInputs = [
glib
dbus-glib
polkit
nss
pam
systemd
2019-11-29 17:34:29 +00:00
libfprint
];
2015-01-03 16:46:09 +00:00
configureFlags = [
# is hardcoded to /var/lib/fprint, this is for the StateDirectory install target
"--localstatedir=${placeholder "out"}/var"
"--sysconfdir=${placeholder "out"}/etc"
"--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; {
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 ];
};
}