chore: hardcode nix-channel to shell.nix

This commit is contained in:
Taranto 2019-12-18 19:12:39 +00:00 committed by Josh Harvey
parent 8334bd274f
commit 49f434f1d1
3 changed files with 9 additions and 5 deletions

View file

@ -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

View file

@ -1,9 +1,12 @@
with import <nixpkgs> {};
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"

View file

@ -1,4 +1,7 @@
with import <nixpkgs> {};
with import (fetchTarball {
url = https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz;
sha256 = "1niknqpb6yrlcvv28cylklf7kgkjslx87jqjcnbsnr89bsq618gn";
}) {};
stdenv.mkDerivation {
name = "node";