Why am I still getting an error for a package that is not in the flake.nix anymore after a nix flake update ?
Here’s my flake.nix
This is the error:
initramfs> cp: cannot stat '/nix/store/my861c9wn4jrdv1big767qjkcgxv5da1-acl-2.3.1-bin/lib/libacl.so.1': No such file or directory
error: builder for '/nix/store/na7p2sdpzcqzxa5sz8p4r0pa54i3m4jc-initramfs.drv' failed with exit code 1;
last 6 log lines:
> patching sources
> updateAutotoolsGnuConfigScriptsPhase
> configuring
> no configure script, doing nothing
> building
> cp: cannot stat '/nix/store/my861c9wn4jrdv1big767qjkcgxv5da1-acl-2.3.1-bin/lib/libacl.so.1': No such file or directory
For full logs, run:
nix log /nix/store/na7p2sdpzcqzxa5sz8p4r0pa54i3m4jc-initramfs.drv
error: 1 dependencies of derivation '/nix/store/0v7wzc9zcyzbvv16vaql14d2gq7m5kvi-disk-image.drv' failed to build
cmyk@ubuntu:~/seedetcher$ nix log /nix/store/na7p2sdpzcqzxa5sz8p4r0pa54i3m4jc-initramfs.drv
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
cp: cannot stat '/nix/store/my861c9wn4jrdv1big767qjkcgxv5da1-acl-2.3.1-bin/lib/libacl.so.1': No such file or directory
Also, I saw you’re using the nixpkgs 23.11 tag, which is both definitely unsupported by now, and the wrong thing to use (you should be using a branch instead).
I have no idea. New to this.
It built fine before adding the acl-2.3.1-bin/lib/libacl.so.1 (no version specified).
But adding it errors out even when I remove it and do a garbage collection.
Well your error is referring to acl, so yes, naturally that makes sense if that package does not have that file. Also, you’ll likely need to select the correct output, via lib.getLib pkgs.acl, if you are using such interpolation. I’d make the same recommendation for the other packages where you need the /bin dirs - use lib.getBin.
Sorry, I don’t quite follow. I removed the tag and did
nix flake update
nix flake update nixpkgs
then rebuilt. Same error.
But what I don’t understand is, why this did not occur before I added acl?
And now when I remove it, it’s still erroring out.
Lol! My bad! I confused my local git repo with the repo on the vm.
When I cleaned up the VM repo and build it went through.
Maybe I shouldn’t be working on stuff at 2am.
Thank you!!