diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-12-01T16·59-0500 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-12-14T18·18+0000 |
commit | cdedcc6238652599534b65f98b9422029ed05368 (patch) | |
tree | 6bd140abd3abfcbd812c0f316d08f5f4bb1f70bf /users/glittershark/pkgs/fprintd/libfprint-tod-goodix.nix | |
parent | ea936e0a78223c02d6e56954c60cf4a29b5e2983 (diff) |
feat(gs/system): Setup fingerprint scanner r/1996
This is kinda nifty Change-Id: I1b9a6762a5349974f539d2c4938a2b3dcdf488ad Reviewed-on: https://cl.tvl.fyi/c/depot/+/2219 Reviewed-by: glittershark <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'users/glittershark/pkgs/fprintd/libfprint-tod-goodix.nix')
-rw-r--r-- | users/glittershark/pkgs/fprintd/libfprint-tod-goodix.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/users/glittershark/pkgs/fprintd/libfprint-tod-goodix.nix b/users/glittershark/pkgs/fprintd/libfprint-tod-goodix.nix new file mode 100644 index 000000000000..f6d7d4ea98c9 --- /dev/null +++ b/users/glittershark/pkgs/fprintd/libfprint-tod-goodix.nix @@ -0,0 +1,47 @@ +{ stdenv +, pkgs +, fetchgit +, libfprint-tod ? (pkgs.callPackage ./libfprint-tod-clean.nix {}) +, git +, autoPatchelfHook +, libusb +, glibc +, +}: +stdenv.mkDerivation rec { + pname = "libfprint-2-tod1-xps9300-bin"; + version = "0.0.6"; + + src = fetchgit { + url = "git://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix/+git/libfprint-2-tod1-goodix/"; + rev = "882735c6366fbe30149eea5cfd6d0ddff880f0e4"; + sha256 = "1x9h5x027s2avdhjhnfmmhdpgyf9x79fz8skcjd3rm3phnpr3zsj"; + }; + + buildInputs = [ + libfprint-tod + git + libusb + autoPatchelfHook + glibc + ]; + + installPhase = '' + install -dm 755 "$out/lib/udev/rules.d/" + install -dm 755 "$out/usr/lib/libfprint-2/tod-1/" + + sed -n -r '/Shenzhen/,/^\s*$/p' debian/copyright > LICENSE + install -Dm644 LICENSE "$out/usr/share/licenses/libfprint-2-tod1-xps9300-bin/LICENSE" + + install -Dm 755 usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-0.0.6.so "$out/usr/lib/libfprint-2/tod-1/" + install -Dm 0755 lib/udev/rules.d/60-libfprint-2-tod1-goodix.rules "$out/lib/udev/rules.d/" + ''; + + meta = with stdenv.lib; { + homepage = "https://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix/+git/libfprint-2-tod1-goodix"; + description = "Goodix driver module for libfprint-2 Touch OEM Driver"; + license = licenses.unfreeRedistributable; + platforms = platforms.linux; + maintainers = with maintainers; [ jobojeha ]; + }; +} |