1 { stdenv, lib, fetchFromGitLab, pkg-config, libfprint, libfprint-tod, gusb, udev, nss, openssl, meson, pixman, ninja, glib }:
3 pname = "libfprint-2-tod1-vfs0090";
6 src = fetchFromGitLab {
7 domain = "gitlab.freedesktop.org";
9 repo = "libfprint-tod-vfs0090";
10 rev = "6084a1545589beec0c741200b18b0902cca225ba";
11 sha256 = "sha256-tSML/8USd/LuHF/YGLvNgykixF6VYtfE4SXzeV47840=";
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
21 nativeBuildInputs = [ pkg-config meson ninja ];
22 buildInputs = [ libfprint libfprint-tod glib gusb udev nss openssl pixman ];
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
33 passthru.driverPath = "/lib/libfprint-2/tod-1";
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 ];