Open trofi opened 11 months ago
https://github.com/NixOS/nixpkgs/pull/237259 Broke it
The match isn't working because
nix-repl> pkgs = import ./. { config = { contentAddressedByDefault = true; }; }
nix-repl> toString pkgs.busybox
"/083nm0nmzng04dzx05w8zbc4ha70674wc1slfbk09ng69a28fgg2"
CC @ncfavier @roberth
I wonder if something like
nix-repl> pkgs.lib.isDerivation pkgs.busybox
true
would be a reasonable short-cut to allow as well.
I'm not aware of other ways it could be worked around, unless a builtin is made.
Lots of possible CA breakages with these checks
isStorePath
hasPrefix.+storeDir
match.+storeDir
261571
Gets past eval but seems to fail to actually use those paths:
error: builder for '/nix/store/vcgqn8fdnzzwysai4lfsm8ndlb1w1qdq-closure-info.drv' failed with exit code 5;
last 2 log lines:
> structuredAttrs is enabled
> jq: error (at <stdin>:0): Cannot iterate over null (null)
For full logs, run 'nix log /nix/store/vcgqn8fdnzzwysai4lfsm8ndlb1w1qdq-closure-info.drv'.
@Ericson2314 did you try this?
Describe the bug
Ideally install
.iso
should be buildable againstca-derivations
vianixpkgs.config.contentAddressedByDefault = true;
. This fails today as:Steps To Reproduce
Executable reproducer:
iso.nix
with the following contents:.iso
:Expected behavior
.iso
should build successfully.Metadata