I can see that NixOS has these versions available for install:
...
nodejs-0.10-statsd-0.7.2
nodejs-0.10.42
nodejs-4.3.1
nodejs-5.9.0
...
yet systemPackages doesn't like me installing nodejs-5.9.0
as it complains that:
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)
which suggests to me I'm doing something wrong. I'd rather not just install with nix-env -i ...
because I want it system-wide (and I'm building my standard NixOS configuration for all my dev' machines).
According to the nixpkgs repository v6 is available, but I've no idea how to tell nixos-rebuild
through configuration.nix or otherwise how to install it.
How can I configure this properly so I can install the latest version of NodeJS, or 5.9.0 specifically?