-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
32 lines (32 loc) · 884 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 = {
nixpkgs-23-05.url = "github:nixos/nixpkgs/nixos-23.05";
freckle.url = "github:freckle/flakes?dir=main";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let
nixpkgsArgs = { inherit system; config = { }; };
nixpkgs-23-05 = import inputs.nixpkgs-23-05 nixpkgsArgs;
freckle = inputs.freckle.packages.${system};
in
rec {
packages = rec {
nodejs = freckle.nodejs-18-18-x;
typescript = nixpkgs-23-05.typescript;
};
devShells.js =
nixpkgs-23-05.mkShell {
name = "js";
buildInputs =
with packages;
[
nodejs
typescript
];
};
devShells.default = devShells.js;
}
);
}