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

69 lines
1.6 KiB
Nix
Raw Normal View History

{ thinkpad ? false
, stdenv
, fetchurl
, fetchpatch
, pkgconfig
, intltool
, libfprint-thinkpad ? null
, libfprint ? null
, glib
, dbus-glib
, polkit
, nss
, pam
, systemd
2019-10-23 23:34:09 +02:00
, autoreconfHook
, gtk-doc
}:
2015-01-03 17:46:09 +01:00
stdenv.mkDerivation rec {
pname = "fprintd" + stdenv.lib.optionalString thinkpad "-thinkpad";
version = "0.9.0";
2015-01-03 17:46:09 +01:00
2015-03-29 04:05:14 +02:00
src = fetchurl {
url = "https://gitlab.freedesktop.org/libfprint/fprintd/uploads/9dec4b63d1f00e637070be1477ce63c0/fprintd-${version}.tar.xz";
sha256 = "182gcnwb6zjwmk0dn562rjmpbk7ac7dhipbfdhfic2sn1jzis49p";
2015-01-03 17:46:09 +01:00
};
patches = [
(fetchpatch {
url = "https://gitlab.freedesktop.org/libfprint/fprintd/merge_requests/16.patch";
sha256 = "1y39zsmxjll9hip8464qwhq5qg06c13pnafyafgxdph75lvhdll7";
})
];
nativeBuildInputs = [
intltool
pkgconfig
2019-10-23 23:34:09 +02:00
autoreconfHook # Drop with above patch
gtk-doc # Drop with above patch
];
buildInputs = [
glib
dbus-glib
polkit
nss
pam
systemd
]
++ stdenv.lib.optional thinkpad libfprint-thinkpad
++ stdenv.lib.optional (!thinkpad) libfprint
;
2015-01-03 17:46:09 +01: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 15:03:48 +02:00
];
2015-01-03 17:46:09 +01:00
meta = with stdenv.lib; {
homepage = "https://fprint.freedesktop.org/";
2015-01-03 17:46:09 +01: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 ];
};
}