diff --git a/INSTALL-NIX.md b/INSTALL-NIX.md index 3ff0e6d4..6dfaf00c 100644 --- a/INSTALL-NIX.md +++ b/INSTALL-NIX.md @@ -20,8 +20,6 @@ ctrl-d shell.nix script provided, all you need to do to setup the environment is to run `nix-shell` on the folder. -*Note*: nix-shell depends on the nix channel version, to force it to 19.03 (if you're on a different one) use `nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz` - # Installation ## Install node modules diff --git a/new-lamassu-admin/shell.nix b/new-lamassu-admin/shell.nix index 55cbc850..194f721e 100644 --- a/new-lamassu-admin/shell.nix +++ b/new-lamassu-admin/shell.nix @@ -1,9 +1,12 @@ -with import {}; +with import (fetchTarball { + url = https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.09.tar.gz; + sha256 = "1msjm4kx1z73v444i1iybvmc7z0kfkbn9nzr21rn5yc4ql1jwf99"; +}) {}; stdenv.mkDerivation { name = "node"; buildInputs = [ - nodejs-10_x + nodejs-12_x ]; shellHook = '' export PATH="$PWD/node_modules/.bin/:$PATH" diff --git a/shell.nix b/shell.nix index a00c92cf..4901f8e5 100644 --- a/shell.nix +++ b/shell.nix @@ -1,4 +1,7 @@ -with import {}; +with import (fetchTarball { + url = https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz; + sha256 = "1niknqpb6yrlcvv28cylklf7kgkjslx87jqjcnbsnr89bsq618gn"; +}) {}; stdenv.mkDerivation { name = "node";