python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libfprint-2-tod1-vfs0090 / default.nix
blob840f8e2271532654dd2d102a22e0446c1172e056
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";
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   };
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   ];
21   nativeBuildInputs = [ pkg-config meson ninja ];
22   buildInputs = [ libfprint libfprint-tod glib gusb udev nss openssl pixman ];
24   installPhase = ''
25     runHook preInstall
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
30     runHook postInstall
31   '';
33   passthru.driverPath = "/lib/libfprint-2/tod-1";
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   };