shell.nix
changeset 1 f213403ee0c8
equal deleted inserted replaced
0:2a447b707b65 1:f213403ee0c8
       
     1 #{ pkgs ? import <nixpkgs> }:
       
     2 #  pkgs.mkShell {
       
     3 #    # nativeBuildInputs is usually what you want -- tools you need to run
       
     4 #    nativeBuildInputs = [ pkgs.nodejs ];
       
     5 #}
       
     6 with import <nixpkgs> {};
       
     7 
       
     8 stdenv.mkDerivation {
       
     9     name = "node";
       
    10     buildInputs = [
       
    11         jq
       
    12         nodejs
       
    13         python3
       
    14         mercurial
       
    15     ];
       
    16     shellHook = ''
       
    17         export PATH="$PWD/node_modules/.bin/:$PATH"
       
    18         alias scripts='jq ".scripts" package.json'
       
    19     '';
       
    20 }