Open domenkozar opened 3 years ago
As types.packages uses toDerivation, toDerivation uses builtins.storePath, which is disallowed in pure mode (enabled in flakes).
types.packages
toDerivation
builtins.storePath
The user just gets an error error: builtins.storePath' is not allowed in pure evaluation mode
error: builtins.storePath' is not allowed in pure evaluation mode
One workaround is to change it to types.path.
types.path
Debugging the cause is hard due to https://github.com/NixOS/nix/issues/4745
As
types.packages
usestoDerivation
,toDerivation
usesbuiltins.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