blob: b8c8b765d550f16fea416fa645112bb9bd7ecdda (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonPackage rec {
pname = "open-fprintd";
version = "0.6";
src = fetchFromGitHub {
owner = "uunicorn";
repo = pname;
rev = version;
sha256 = "sha256-uVFuwtsmR/9epoqot3lJ/5v5OuJjuRjL7FJF7oXNDzU=";
};
propagatedBuildInputs = with python3Packages; [ dbus-python pygobject3 ];
checkInputs = with python3Packages; [ dbus-python ];
postInstall = ''
install -D -m 644 debian/open-fprintd.service \
$out/lib/systemd/system/open-fprintd.service
install -D -m 644 debian/open-fprintd-resume.service \
$out/lib/systemd/system/open-fprintd-resume.service
install -D -m 644 debian/open-fprintd-suspend.service \
$out/lib/systemd/system/open-fprintd-suspend.service
substituteInPlace $out/lib/systemd/system/open-fprintd.service \
--replace /usr/lib/open-fprintd "$out/lib/open-fprintd"
substituteInPlace $out/lib/systemd/system/open-fprintd-resume.service \
--replace /usr/lib/open-fprintd "$out/lib/open-fprintd"
substituteInPlace $out/lib/systemd/system/open-fprintd-suspend.service \
--replace /usr/lib/open-fprintd "$out/lib/open-fprintd"
'';
postFixup = ''
wrapPythonProgramsIn "$out/lib/open-fprintd" "$out $pythonPath"
'';
meta = with lib; {
description =
"Fprintd replacement which allows you to have your own backend as a standalone service";
homepage = "https://github.com/uunicorn/open-fprintd";
license = licenses.gpl2Only;
platforms = platforms.linux;
};
}
|