Even if I do “nothing” in the build script, I end up with either python3 error (shown above) AND/OR libfprint-2 missing error.
Similar issues were noticed in yet another libfprint patch: https://discourse.nixos.org/t/i-am-trying-to-create-a-custom-package-containing-libfprint-drivers-firmware/
With the most minimal config, I get the following errors (missing libraries)
{ stdenv
, lib
, fetchurl
, dpkg
, autoPatchelfHook
}:
stdenv.mkDerivation rec {
pname = "libfprint-ft9366";
version = "1.94.4";
src = fetchurl {
url = "https://github.com/ftfpteams/RTS5811-FT9366-fingerprint-linux-driver-with-VID-2808-and-PID-a658/raw/b040ccd953c27e26c1285c456b4264e70b36bc3f/libfprint-2-2_1.94.4+tod1-0ubuntu1~22.04.2_amd64_rts5811.deb";
hash = "sha256-vH1SbJ+/Uro7IQKM/SNUo44ySZqMwj+SgmmzOmwAgpw=";
};
nativeBuildInputs = [
autoPatchelfHook
dpkg
];
unpackPhase = ''
dpkg-deb -x $src .
'';
installPhase = ''
cp -r . $out/
'';
}
libgio-2.0.so.0 -> not found!
libgobject-2.0.so.0 -> not found!
libglib-2.0.so.0 -> not found!
libgusb.so.2 -> not found!
libpixman-1.so.0 -> not found!
libnss3.so -> not found!
libgudev-1.0.so.0 -> not found!
libstdc++.so.6 -> not found!
libgcc_s.so.1 -> not found!
auto-patchelf: 9 dependencies could not be satisfied
Now trying to patch each library arrives me to:
libgio-2.0.so.0 -> not found! => glib
libgobject-2.0.so.0 -> not found! => glib
libglib-2.0.so.0 -> not found! => glib
libgusb.so.2 -> not found! => glib
libpixman-1.so.0 -> not found! => pixman
libnss3.so -> not found! => nss
libgudev-1.0.so.0 -> not found! => libgudev
libstdc++.so.6 -> not found! => stdenv.cc.cc
libgcc_s.so.1 -> not found! => stdenv.cc.cc
auto-patchelf: 9 dependencies could not be satisfied
{ stdenv, lib, fetchurl, dpkg, autoPatchelfHook, glib, gusb, pixman, libgudev, nss}:
stdenv.mkDerivation rec {
pname = "libfprint-ft9366";
version = "1.94.4";
src = fetchurl {
url = "https://github.com/ftfpteams/RTS5811-FT9366-fingerprint-linux-driver-with-VID-2808-and-PID-a658/raw/b040ccd953c27e26c1285c456b4264e70b36bc3f/libfprint-2-2_1.94.4+tod1-0ubuntu1~22.04.2_amd64_rts5811.deb";
hash = "sha256-vH1SbJ+/Uro7IQKM/SNUo44ySZqMwj+SgmmzOmwAgpw=";
};
nativeBuildInputs = [
autoPatchelfHook
dpkg
];
buildInputs = [
stdenv.cc.cc
glib
gusb
pixman
nss
libgudev
];
unpackPhase = ''
dpkg-deb -x $src .
'';
installPhase = ''
cp -r . $out/
'';
}
All required libraries were supplied, but this time Meson build fails.
Found pkg-config: YES (/nix/store/4lssw6pk59r654j0yrfydv0kngk8zrqp-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
Run-time dependency glib-2.0 found: YES 2.80.2
Run-time dependency gio-2.0 found: YES 2.80.2
Run-time dependency gio-unix-2.0 found: YES 2.80.2
Run-time dependency gmodule-2.0 found: YES 2.80.2
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency libfprint-2 found: NO (tried pkgconfig)
meson.build:92:16: ERROR: Dependency "libfprint-2" not found, tried pkgconfig
A full log can be found at /build/source/build/meson-logs/meson-log.txt
Even adding libfprint
doesn’t help (nix-locate libfprint-2
)
Another thread which is relevant to this: [TRACKING] Fingerprint scanner compatibility with linux (ubuntu, fedora, etc) - #58 by NullVoxPopuli - Linux - Framework Community
Sorry for the trouble! I’m new to nix, and this is sort of overwhelming for me.