NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.36k stars 14.32k forks source link

types.packages breaks with flakes #120752

Open domenkozar opened 3 years ago

domenkozar commented 3 years ago

As types.packages uses toDerivation, toDerivation uses builtins.storePath, which is disallowed in pure mode (enabled in flakes).

The user just gets an error error: builtins.storePath' is not allowed in pure evaluation mode

One workaround is to change it to types.path.

Debugging the cause is hard due to https://github.com/NixOS/nix/issues/4745

FliegendeWurst commented 1 month ago

163443 is related