chore: hardcode nix-channel to shell.nix
This commit is contained in:
parent
8334bd274f
commit
49f434f1d1
3 changed files with 9 additions and 5 deletions
|
|
@ -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.
|
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
|
# Installation
|
||||||
|
|
||||||
## Install node modules
|
## Install node modules
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
stdenv.mkDerivation {
|
||||||
name = "node";
|
name = "node";
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
nodejs-10_x
|
nodejs-12_x
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export PATH="$PWD/node_modules/.bin/:$PATH"
|
export PATH="$PWD/node_modules/.bin/:$PATH"
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
stdenv.mkDerivation {
|
||||||
name = "node";
|
name = "node";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue