forked from microsoft/typescript-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
32 lines (29 loc) · 772 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = (import nixpkgs) {
inherit system;
config.allowUnfree = true;
};
in {
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
go
nodePackages.npm
];
shellHook = ''
go install
npm install
npm install -g hereby --prefix ~/.npm-packages
export PATH="~/.npm-packages/bin:$PATH"
'';
NODE_PATH="~/.npm-packages/lib/node_modules";
};
}
);
}