Ale*_*lex 3 node.js nixos nixpkgs
我可以看到NixOS可以安装这些版本:
...
nodejs-0.10-statsd-0.7.2
nodejs-0.10.42
nodejs-4.3.1
nodejs-5.9.0
...
Run Code Online (Sandbox Code Playgroud)
但是systemPackages不喜欢我安装,nodejs-5.9.0因为它抱怨:
error: syntax error, unexpected INT, expecting ID or OR_KW or DOLLAR_CURLY or '"', at /etc/nixos/configuration.nix:49:14
(use ‘--show-trace’ to show detailed location information)
error: syntax error, unexpected INT, expecting ID or OR_KW or DOLLAR_CURLY or '"', at /etc/nixos/configuration.nix:49:14
(use ‘--show-trace’ to show detailed location information)
building the system configuration...
error: syntax error, unexpected INT, expecting ID or OR_KW or DOLLAR_CURLY or '"', at /etc/nixos/configuration.nix:49:14
(use ‘--show-trace’ to show detailed location information)
Run Code Online (Sandbox Code Playgroud)
这告诉我,我做错了什么.我宁愿不只是安装,nix-env -i ...因为我想要它在系统范围内(我正在为我的所有开发机器构建我的标准NixOS配置).
根据nixpkgs存储库 v6是可用的,但我不知道如何nixos-rebuild通过configuration.nix或其他如何安装它.
如何正确配置,以便我可以安装最新版本的NodeJS或5.9.0?
事实证明这是可能的,但我使用了错误的包名.如果您查询,nix-env -qaP | grep nodejs请从其命名空间中获取名称:
$ nix-env -qaP | grep nodejs
nixos.statsd nodejs-0.10-statsd-0.7.2
nixos.nodejs-0_10 nodejs-0.10.42
nixos.nodejs nodejs-4.3.1
*nixos.nodejs-5_x nodejs-5.9.0*
nixos.azure-cli nodejs-azure-cli-0.9.15
nixos.dnschain nodejs-dnschain-0.5.3
nixos.groovebasin nodejs-groovebasin-1.5.1
nixos.keybase nodejs-keybase-0.8.25
nixos.npm2nix nodejs-npm2nix-5.12.0
nixos.pumpio nodejs-pump.io-git-2015-11-09
nixos.ripple-rest nodejs-ripple-rest-1.7.0-rc1
nixos.shout nodejs-shout-0.51.1
nixos.sloc nodejs-sloc-0.1.9
nixos.wring nodejs-wring-1.0.0
Run Code Online (Sandbox Code Playgroud)
我特别想要nodejs-5.9.0,这意味着我需要使用nodejs-5_x如上所述的包(强调我的).
| 归档时间: |
|
| 查看次数: |
1864 次 |
| 最近记录: |