tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libfprint-2-tod1-vfs0090: init at 0.8.5
Vincent Breitmoser
4 years ago
00ec76bb
d7d0a677
+98
4 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
libfprint-2-tod1-vfs0090
0001-vfs0090-add-missing-explicit-dependencies-in-meson.b.patch
0002-vfs0090-add-missing-linux-limits.h-include.patch
default.nix
top-level
all-packages.nix
+28
pkgs/development/libraries/libfprint-2-tod1-vfs0090/0001-vfs0090-add-missing-explicit-dependencies-in-meson.b.patch
···
1
1
+
From c02f2e040dd1e7664777c5a705272e4eb7bfb569 Mon Sep 17 00:00:00 2001
2
2
+
From: Vincent Breitmoser <look@my.amazin.horse>
3
3
+
Date: Thu, 10 Jun 2021 14:09:19 +0200
4
4
+
Subject: [PATCH] vfs0090: add missing explicit dependencies in meson.build
5
5
+
6
6
+
Make all dependencies explicit, so they can be found when building with Nix.
7
7
+
8
8
+
---
9
9
+
meson.build | 3 +++
10
10
+
1 file changed, 3 insertions(+)
11
11
+
12
12
+
diff --git a/meson.build b/meson.build
13
13
+
index 54a7ca4..88f8793 100644
14
14
+
--- a/meson.build
15
15
+
+++ b/meson.build
16
16
+
@@ -17,6 +17,9 @@ udev_dep = dependency('udev')
17
17
+
vfs009x_deps += libfprint_tod_dep
18
18
+
vfs009x_deps += dependency('nss')
19
19
+
vfs009x_deps += dependency('openssl')
20
20
+
+vfs009x_deps += dependency('gusb')
21
21
+
+vfs009x_deps += dependency('libfprint-2')
22
22
+
+vfs009x_deps += dependency('glib-2.0')
23
23
+
24
24
+
vfs0090_deps += dependency('pixman-1')
25
25
+
26
26
+
--
27
27
+
2.31.1
28
28
+
+26
pkgs/development/libraries/libfprint-2-tod1-vfs0090/0002-vfs0090-add-missing-linux-limits.h-include.patch
···
1
1
+
From 5405e02c629e689449e852424aed8cca217ed309 Mon Sep 17 00:00:00 2001
2
2
+
From: Vincent Breitmoser <look@my.amazin.horse>
3
3
+
Date: Thu, 10 Jun 2021 14:10:52 +0200
4
4
+
Subject: [PATCH] vfs0090: add missing <linux/limits.h> include
5
5
+
6
6
+
This header is needed for the NAME_MAX constant used in this file.
7
7
+
8
8
+
---
9
9
+
vfs0090.c | 1 +
10
10
+
1 file changed, 1 insertion(+)
11
11
+
12
12
+
diff --git a/vfs0090.c b/vfs0090.c
13
13
+
index 8034faf..6070df7 100644
14
14
+
--- a/vfs0090.c
15
15
+
+++ b/vfs0090.c
16
16
+
@@ -24,6 +24,7 @@
17
17
+
18
18
+
#include <errno.h>
19
19
+
#include <ctype.h>
20
20
+
+#include <linux/limits.h>
21
21
+
#include <nss.h>
22
22
+
#include <pk11pub.h>
23
23
+
#include <sechash.h>
24
24
+
--
25
25
+
2.31.1
26
26
+
+42
pkgs/development/libraries/libfprint-2-tod1-vfs0090/default.nix
···
1
1
+
{ stdenv, lib, fetchFromGitLab, pkg-config, libfprint, libfprint-tod, gusb, udev, nss, openssl, meson, pixman, ninja, glib }:
2
2
+
stdenv.mkDerivation {
3
3
+
pname = "libfprint-2-tod1-vfs0090";
4
4
+
version = "0.8.5";
5
5
+
6
6
+
src = fetchFromGitLab {
7
7
+
domain = "gitlab.freedesktop.org";
8
8
+
owner = "3v1n0";
9
9
+
repo = "libfprint-tod-vfs0090";
10
10
+
rev = "6084a1545589beec0c741200b18b0902cca225ba";
11
11
+
sha256 = "sha256-tSML/8USd/LuHF/YGLvNgykixF6VYtfE4SXzeV47840=";
12
12
+
};
13
13
+
14
14
+
patches = [
15
15
+
# TODO remove once https://gitlab.freedesktop.org/3v1n0/libfprint-tod-vfs0090/-/merge_requests/1 is merged
16
16
+
./0001-vfs0090-add-missing-explicit-dependencies-in-meson.b.patch
17
17
+
# TODO remove once https://gitlab.freedesktop.org/3v1n0/libfprint-tod-vfs0090/-/merge_requests/2 is merged
18
18
+
./0002-vfs0090-add-missing-linux-limits.h-include.patch
19
19
+
];
20
20
+
21
21
+
nativeBuildInputs = [ pkg-config meson ninja ];
22
22
+
buildInputs = [ libfprint libfprint-tod glib gusb udev nss openssl pixman ];
23
23
+
24
24
+
installPhase = ''
25
25
+
runHook preInstall
26
26
+
27
27
+
install -D -t "$out/lib/libfprint-2/tod-1/" libfprint-tod-vfs009x.so
28
28
+
install -D -t "$out/lib/udev/rules.d/" $src/60-libfprint-2-tod-vfs0090.rules
29
29
+
30
30
+
runHook postInstall
31
31
+
'';
32
32
+
33
33
+
passthru.driverPath = "/lib/libfprint-2/tod-1";
34
34
+
35
35
+
meta = with lib; {
36
36
+
description = "A libfprint-2-tod Touch OEM Driver for 2016 ThinkPad's fingerprint readers";
37
37
+
homepage = "https://gitlab.freedesktop.org/3v1n0/libfprint-tod-vfs0090";
38
38
+
license = licenses.lgpl21Plus;
39
39
+
platforms = platforms.linux;
40
40
+
maintainers = with maintainers; [ valodim ];
41
41
+
};
42
42
+
}
+2
pkgs/top-level/all-packages.nix
···
16111
16111
16112
16112
libfprint-2-tod1-goodix = callPackage ../development/libraries/libfprint-2-tod1-goodix { };
16113
16113
16114
16114
+
libfprint-2-tod1-vfs0090 = callPackage ../development/libraries/libfprint-2-tod1-vfs0090 { };
16115
16115
+
16114
16116
libfpx = callPackage ../development/libraries/libfpx { };
16115
16117
16116
16118
libgadu = callPackage ../development/libraries/libgadu { };