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

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

Building repo with flake on unstable fails with patch error #15

Open ericswpark opened 3 weeks ago

ericswpark commented 3 weeks ago

Hello! I'm using the following configuration for my T480: https://github.com/ericswpark/nixos-config/tree/t480-fingerprint

Unfortunately, trying to build with this configuration results in the following build/patch error:

error: builder for '/nix/store/5rblak3xirk0cjszsmdiy5jsg98c52zk-fprintd-clients-1.94.3.drv' failed with exit code 1;
       last 16 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/7wfpghw4ykxg3ydx3xm7czwz2is0g28v-source
       > source root is source
       > Running phase: patchPhase
       > applying patch /nix/store/8hx1dpakhd6bd5a5k5ys0ki0bxp6b859-skip-test-test_removal_during_enroll.patch
       > patching file tests/fprintd.py
       > applying patch /nix/store/afphhl36sw5b3kz768qhdinlf8416gl0-Make-building-the-daemon-optional.patch
       > patching file data/meson.build
       > patching file meson.build
       > Hunk #1 succeeded at 89 with fuzz 1.
       > Hunk #2 FAILED at 141.
       > Hunk #3 succeeded at 200 (offset 3 lines).
       > 1 out of 3 hunks FAILED -- saving rejects to file meson.build.rej
       > patching file meson_options.txt
       > patching file src/meson.build
       > patching file tests/meson.build
       For full logs, run 'nix log /nix/store/5rblak3xirk0cjszsmdiy5jsg98c52zk-fprintd-clients-1.94.3.drv'.
error: 1 dependencies of derivation '/nix/store/j5yyj0ijchgm6590bz45byz5zgl54cjk-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rb3dz38ykak1han09ialix1fgp5xsl3s-nixos-system-wendy-24.11.20241029.807e915.drv' failed to build
ericswpark commented 3 weeks ago

I tried patching the patch file so that it looks for the correct line number for fprintd 1.94.3, but unfortunately the build breaks because it doesn't recognize the daemon=false flag.

Seems like more patches are required to get this repo to build for 24.05/unstable :(

https://github.com/ericswpark/nixos-06cb-009a-fingerprint-sensor/commit/133e39b533fbd1df180f8e6d1f53da9da3a5f722

ericswpark commented 2 weeks ago

For now the workaround is to define a NixOS 23.11 input and make this repo follow that instead of unstable/24.05.