From 49f434f1d1f69653e8fd828548178bd0b11f7cd2 Mon Sep 17 00:00:00 2001 From: Taranto Date: Wed, 18 Dec 2019 19:12:39 +0000 Subject: [PATCH] chore: hardcode nix-channel to shell.nix --- INSTALL-NIX.md | 2 -- new-lamassu-admin/shell.nix | 7 +++++-- shell.nix | 5 ++++- 3 files changed, 9 insertions(+), 5 deletions(-) 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";