ahbnr / nixos-06cb-009a-fingerprint-sensor

Nix flake for driving the 06cb:009a fingerprint sensor on NixOS
28 stars 13 forks source link

Upgrade to nixpkgs 23.11 #8

Closed ahbnr closed 9 months ago

ahbnr commented 9 months ago

This PR upgrades the flake to nixpkgs stable 23.11. It also contains a build fix for the python-validity package / open-fprintd package by @deviant.

These are the notes deviant provided for that fix:

Since https://github.com/NixOS/nixpkgs/commit/6c85fff302615c62bf4f632bca661bc48298b0a3, buildPythonPackage uses pypa{Build,Install}Hook for setuptools-based python packages rather than the older pip{Build,Install}Hooks. pypaInstallHook appears to have more stringent testing than its predecessor, yielding the following error:

FileExistsError: File already exists: /nix/store/[...]-python3.10-python-validity-0.14/share/dbus-1/system.d/io.github.uunicorn.Fprint.conf

Removing the workaround doesn't appear to cause problems, and seemingly works just fine with pipInstallHook as well: whatever necessitated its addition was presumably fixed in the interim, with installation of the resource files being silently duplicated, until now.

Co-authored-by: V v@anomalous.eu