-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Closed
Description
Issue description
The documentation at https://nixos.org/nixpkgs/manual/ states:
{
allowUnfreePredicate = (pkg: builtins.elem
(builtins.parseDrvName pkg.name).name [
"flashplayer"
"vscode"
]);
}
Which will produce
$ nix-env -i vscode
installing 'vscode-1.35.1'
error: attribute 'name' missing, at nixpkgs/config.nix:3:28
Technical details
Is fixed when changing the docs to
{
allowUnfreePredicate = (pkg: builtins.elem
(builtins.parseDrvName pkg.pname).name [
"flashplayer"
"vscode"
]);
}
I am not sure if it is always pname or just for VsCode. In addition to that I am not sure how to find the right place to change this. Is the docs/configuration.xml used for this or somehow autogenerated?
AleXoundOS and ShamrockLee
Metadata
Metadata
Assignees
Labels
No labels