fprintd: 0.8.1 -> 0.9.0
Resolves issues with StateDirectory not being set in systemd unit. https://gitlab.freedesktop.org/libfprint/fprintd/-/tags/V_0_9_0
This commit is contained in:
parent
7854b86d46
commit
e2644036f6
@ -50,13 +50,6 @@ in
|
|||||||
|
|
||||||
systemd.packages = [ cfg.package ];
|
systemd.packages = [ cfg.package ];
|
||||||
|
|
||||||
|
|
||||||
# The upstream unit does not use StateDirectory, and will
|
|
||||||
# fail if the directory it needs is not present. Should be
|
|
||||||
# fixed when https://gitlab.freedesktop.org/libfprint/fprintd/merge_requests/5
|
|
||||||
# is merged.
|
|
||||||
systemd.services.fprintd.serviceConfig.StateDirectory = "fprint";
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,26 +1,49 @@
|
|||||||
{ thinkpad ? false
|
{ thinkpad ? false
|
||||||
, stdenv, fetchurl, pkgconfig, intltool, libfprint-thinkpad ? null
|
, stdenv
|
||||||
, libfprint ? null, glib, dbus-glib, polkit, nss, pam, systemd }:
|
, fetchurl
|
||||||
|
, pkgconfig
|
||||||
|
, intltool
|
||||||
|
, libfprint-thinkpad ? null
|
||||||
|
, libfprint ? null
|
||||||
|
, glib
|
||||||
|
, dbus-glib
|
||||||
|
, polkit
|
||||||
|
, nss
|
||||||
|
, pam
|
||||||
|
, systemd
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fprintd" + stdenv.lib.optionalString thinkpad "-thinkpad";
|
pname = "fprintd" + stdenv.lib.optionalString thinkpad "-thinkpad";
|
||||||
version = "0.8.1";
|
version = "0.9.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://gitlab.freedesktop.org/libfprint/fprintd/uploads/bdd9f91909f535368b7c21f72311704a/fprintd-${version}.tar.xz";
|
url = "https://gitlab.freedesktop.org/libfprint/fprintd/uploads/9dec4b63d1f00e637070be1477ce63c0/fprintd-${version}.tar.xz";
|
||||||
sha256 = "124s0g9syvglgsmqnavp2a8c0zcq8cyaph8p8iyvbla11vfizs9l";
|
sha256 = "182gcnwb6zjwmk0dn562rjmpbk7ac7dhipbfdhfic2sn1jzis49p";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ glib dbus-glib polkit nss pam systemd ]
|
nativeBuildInputs = [
|
||||||
++ stdenv.lib.optional thinkpad libfprint-thinkpad
|
intltool
|
||||||
++ stdenv.lib.optional (!thinkpad) libfprint;
|
pkgconfig
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig intltool ];
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
dbus-glib
|
||||||
|
polkit
|
||||||
|
nss
|
||||||
|
pam
|
||||||
|
systemd
|
||||||
|
]
|
||||||
|
++ stdenv.lib.optional thinkpad libfprint-thinkpad
|
||||||
|
++ stdenv.lib.optional (!thinkpad) libfprint
|
||||||
|
;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
# is hardcoded to /var/lib/fprint, this is for the StateDirectory install target
|
||||||
"--localstatedir=/var"
|
"--localstatedir=${placeholder "out"}/var"
|
||||||
"--sysconfdir=${placeholder "out"}/etc"
|
"--sysconfdir=${placeholder "out"}/etc"
|
||||||
|
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user