python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libfprint-2-tod1-goodix / default.nix
blobeb7de9bbc09df41843bda244e6890689683cc07c
1 { stdenv, lib, fetchgit, libfprint-tod }:
2 stdenv.mkDerivation {
3   pname = "libfprint-2-tod1-goodix";
4   version = "0.0.6";
6   src = fetchgit {
7     url = "https://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix/+git/libfprint-2-tod1-goodix";
8     rev = "882735c6366fbe30149eea5cfd6d0ddff880f0e4"; # droped-lp1880058 on 2020-11-25
9     sha256 = "sha256-Uv+Rr4V31DyaZFOj79Lpyfl3G6zVWShh20roI0AvMPU=";
10   };
12   buildPhase = ''
13     patchelf \
14       --set-rpath ${lib.makeLibraryPath [ libfprint-tod ]} \
15       usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-0.0.6.so
17     ldd usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-0.0.6.so
18   '';
20   installPhase = ''
21     mkdir -p "$out/lib/libfprint-2/tod-1/"
22     mkdir -p "$out/lib/udev/rules.d/"
24     cp usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-$version.so "$out/lib/libfprint-2/tod-1/"
25     cp lib/udev/rules.d/60-libfprint-2-tod1-goodix.rules "$out/lib/udev/rules.d/"
26   '';
28   passthru.driverPath = "/lib/libfprint-2/tod-1";
30   meta = with lib; {
31     description = "Goodix driver module for libfprint-2-tod Touch OEM Driver";
32     homepage = "https://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix/+git/libfprint-2-tod1-goodix/";
33     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
34     license = licenses.unfree;
35     platforms = platforms.linux;
36     maintainers = with maintainers; [ grahamc ];
37   };