Unverified Commit 9b9b2da9 authored by Artturi's avatar Artturi Committed by GitHub
Browse files

libfprint-2-tod1-elan: init at 0.0.8 (#264410)

parents cc27610d f8e7a64b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -14726,6 +14726,12 @@
      fingerprint = "3586 3350 BFEA C101 DB1A 4AF0 1F81 112D 62A9 ADCE";
    }];
  };
  qdlmcfresh = {
    name = "Philipp Urlbauer";
    email = "qdlmcfresh@gmail.com";
    github = "qdlmcfresh";
    githubId = 10837173;
  };
  qjoly = {
    email = "github@thoughtless.eu";
    github = "qjoly";
+53 −0
Original line number Diff line number Diff line
{ stdenvNoCC
, lib
, fetchzip
, libfprint-tod
, openssl
, gusb
, glib
, autoPatchelfHook
}:

stdenvNoCC.mkDerivation {
  pname = "libfprint-2-tod1-elan";
  version = "0.0.8";

  src = fetchzip {
    url = "https://download.lenovo.com/pccbbs/mobiles/r1slf01w.zip";
    hash = "sha256-GD/BebPto1fFLgyvpiitt+ngwEtdsnKsvdFNeSmVDmw=";
    # .so is in a subzip
    postFetch = ''
      unpackFile $out/*
      rm $out/*.zip
      mv * $out/
    '';
  };

  nativeBuildInputs = [ autoPatchelfHook];

  buildInputs = [
    libfprint-tod
    openssl
    gusb
    glib
  ];

  installPhase = ''
    runHook preInstall

    install -Dm444 libfprint-2-tod1-elan.so -t "$out/lib/libfprint-2/tod-1/"

    runHook postInstall
  '';

  passthru.driverPath = "/lib/libfprint-2/tod-1";

  meta = with lib; {
    description = "Elan(04f3:0c4b) driver module for libfprint-2-tod Touch OEM Driver";
    homepage = "https://support.lenovo.com/us/en/downloads/ds560939-elan-fingerprint-driver-for-ubuntu-2204-thinkpad-e14-gen-4-e15-gen-4";
    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
    license = licenses.unfree;
    platforms = [ "x86_64-linux" ];
    maintainers = with maintainers; [ qdlmcfresh ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -22732,6 +22732,8 @@ with pkgs;
  libfprint-2-tod1-vfs0090 = callPackage ../development/libraries/libfprint-2-tod1-vfs0090 { };
  libfprint-2-tod1-elan = callPackage ../development/libraries/libfprint-2-tod1-elan { };
  libfpx = callPackage ../development/libraries/libfpx { };
  libgadu = callPackage ../development/libraries/libgadu { };