forked from mirrors/nixpkgs
Merge pull request #226056 from utkarshgupta137/master
This commit is contained in:
commit
1f78735c35
|
@ -16176,6 +16176,12 @@
|
|||
githubId = 15697697;
|
||||
name = "Kasper Gałkowski";
|
||||
};
|
||||
utkarshgupta137 = {
|
||||
email = "utkarshgupta137@gmail.com";
|
||||
github = "utkarshgupta137";
|
||||
githubId = 5155100;
|
||||
name = "Utkarsh Gupta";
|
||||
};
|
||||
uvnikita = {
|
||||
email = "uv.nikita@gmail.com";
|
||||
github = "uvNikita";
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
{ stdenv, lib, fetchzip, unzip, libfprint-tod }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libfprint-2-tod1-goodix-550a";
|
||||
version = "0.0.9";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://download.lenovo.com/pccbbs/mobiles/r1slg01w.zip";
|
||||
sha256 = "sha256-6tp8Unu6rs27oB5VAqfRqHmv5D9N3njl5qv6We0b/Ec=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
unpackPhase = ''
|
||||
unzip $src/libfprint-tod-goodix-550a-0.0.9.zip
|
||||
cd libfprint-tod-goodix-550a-0.0.9
|
||||
ar x libfprint-2-tod-goodix_amd64.deb
|
||||
tar xf data.tar.xz
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
patchelf \
|
||||
--set-rpath ${lib.makeLibraryPath [ libfprint-tod ]} \
|
||||
usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-550a-$version.so
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/lib/libfprint-2/tod-1/"
|
||||
mkdir -p "$out/lib/udev/rules.d/"
|
||||
|
||||
cp usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-550a-$version.so "$out/lib/libfprint-2/tod-1/"
|
||||
cp lib/udev/rules.d/60-libfprint-2-tod1-goodix.rules "$out/lib/udev/rules.d/"
|
||||
'';
|
||||
|
||||
passthru.driverPath = "/lib/libfprint-2/tod-1";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Goodix 550a driver module for libfprint-2-tod Touch OEM Driver (from Lenovo)";
|
||||
homepage = "https://support.lenovo.com/us/en/downloads/ds560884-goodix-fingerprint-driver-for-linux-thinkpad-e14-gen-4-e15-gen-4";
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
license = licenses.unfree;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ utkarshgupta137 ];
|
||||
};
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
{ stdenv, lib, fetchgit, libfprint-tod }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "libfprint-2-tod1-goodix";
|
||||
version = "0.0.6";
|
||||
|
@ -12,9 +13,7 @@ stdenv.mkDerivation {
|
|||
buildPhase = ''
|
||||
patchelf \
|
||||
--set-rpath ${lib.makeLibraryPath [ libfprint-tod ]} \
|
||||
usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-0.0.6.so
|
||||
|
||||
ldd usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-0.0.6.so
|
||||
usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-$version.so
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
|
@ -21502,6 +21502,8 @@ with pkgs;
|
|||
|
||||
libfprint-2-tod1-goodix = callPackage ../development/libraries/libfprint-2-tod1-goodix { };
|
||||
|
||||
libfprint-2-tod1-goodix-550a = callPackage ../development/libraries/libfprint-2-tod1-goodix-550a { };
|
||||
|
||||
libfprint-2-tod1-vfs0090 = callPackage ../development/libraries/libfprint-2-tod1-vfs0090 { };
|
||||
|
||||
libfpx = callPackage ../development/libraries/libfpx { };
|
||||
|
|
Loading…
Reference in a new issue