libfprint-2-tod1-vfs0090: init at 0.8.5

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