python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / by-name / li / libfprint-2-tod1-vfs0090 / package.nix
blob7d0d006dbb4c593cab472ca5e65927d097df934d
2   stdenv,
3   lib,
4   fetchFromGitLab,
5   pkg-config,
6   libfprint,
7   libfprint-tod,
8   gusb,
9   udev,
10   nss,
11   openssl,
12   meson,
13   pixman,
14   ninja,
15   glib,
17 stdenv.mkDerivation {
18   pname = "libfprint-2-tod1-vfs0090";
19   version = "0.8.5";
21   src = fetchFromGitLab {
22     domain = "gitlab.freedesktop.org";
23     owner = "3v1n0";
24     repo = "libfprint-tod-vfs0090";
25     rev = "6084a1545589beec0c741200b18b0902cca225ba";
26     sha256 = "sha256-tSML/8USd/LuHF/YGLvNgykixF6VYtfE4SXzeV47840=";
27   };
29   patches = [
30     # TODO remove once https://gitlab.freedesktop.org/3v1n0/libfprint-tod-vfs0090/-/merge_requests/1 is merged
31     ./0001-vfs0090-add-missing-explicit-dependencies-in-meson.b.patch
32     # TODO remove once https://gitlab.freedesktop.org/3v1n0/libfprint-tod-vfs0090/-/merge_requests/2 is merged
33     ./0002-vfs0090-add-missing-linux-limits.h-include.patch
34   ];
36   nativeBuildInputs = [
37     pkg-config
38     meson
39     ninja
40   ];
41   buildInputs = [
42     libfprint
43     libfprint-tod
44     glib
45     gusb
46     udev
47     nss
48     openssl
49     pixman
50   ];
52   installPhase = ''
53     runHook preInstall
55     install -D -t "$out/lib/libfprint-2/tod-1/" libfprint-tod-vfs009x.so
56     install -D -t "$out/lib/udev/rules.d/" $src/60-libfprint-2-tod-vfs0090.rules
58     runHook postInstall
59   '';
61   passthru.driverPath = "/lib/libfprint-2/tod-1";
63   meta = with lib; {
64     description = "Libfprint-2-tod Touch OEM Driver for 2016 ThinkPad's fingerprint readers";
65     homepage = "https://gitlab.freedesktop.org/3v1n0/libfprint-tod-vfs0090";
66     license = licenses.lgpl21Plus;
67     platforms = platforms.linux;
68     maintainers = with maintainers; [ valodim ];
69   };