milahu
8
how did i find this?
# generate error message
nix-build -E 'with import <nixpkgs> { }; callPackage (stdenv.mkDerivation { name = ", invalid"; }) { }'
error: store path 'xxxx-, invalid' contains illegal character ','
# get nix source
git clone https://github.com/NixOS/nix --depth 1
# find error message
grep -rHn 'contains illegal character' nix/
nix/src/libstore/path.cc:16: throw BadStorePath("store path '%s' contains illegal character '%s'", path, c);
3 Likes