mini-calc: 3.3.3 -> 3.3.5 (#372274)
[NixPkgs.git] / pkgs / by-name / li / libfprint-2-tod1-goodix / package.nix
blobf0900f7e5e3c595e04f43c67db082c685a34da43
2   stdenv,
3   lib,
4   fetchgit,
5   libfprint-tod,
6 }:
8 stdenv.mkDerivation {
9   pname = "libfprint-2-tod1-goodix";
10   version = "0.0.6";
12   src = fetchgit {
13     url = "https://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix/+git/libfprint-2-tod1-goodix";
14     rev = "882735c6366fbe30149eea5cfd6d0ddff880f0e4"; # droped-lp1880058 on 2020-11-25
15     sha256 = "sha256-Uv+Rr4V31DyaZFOj79Lpyfl3G6zVWShh20roI0AvMPU=";
16   };
18   buildPhase = ''
19     patchelf \
20       --set-rpath ${lib.makeLibraryPath [ libfprint-tod ]} \
21       usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-$version.so
22   '';
24   installPhase = ''
25     mkdir -p "$out/lib/libfprint-2/tod-1/"
26     mkdir -p "$out/lib/udev/rules.d/"
28     cp usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-$version.so "$out/lib/libfprint-2/tod-1/"
29     cp lib/udev/rules.d/60-libfprint-2-tod1-goodix.rules "$out/lib/udev/rules.d/"
30   '';
32   passthru.driverPath = "/lib/libfprint-2/tod-1";
34   meta = with lib; {
35     description = "Goodix driver module for libfprint-2-tod Touch OEM Driver";
36     homepage = "https://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix/+git/libfprint-2-tod1-goodix/";
37     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
38     license = licenses.unfree;
39     platforms = platforms.linux;
40     maintainers = with maintainers; [ grahamc ];
41   };