| author | ymh <ymh.work@gmail.com> |
| Mon, 02 Feb 2026 18:27:25 +0100 | |
| changeset 1 | f213403ee0c8 |
| permissions | -rw-r--r-- |
| 1 | 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 |
} |