-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
33 lines (33 loc) · 924 Bytes
/
Copy pathflake.nix
File metadata and controls
33 lines (33 loc) · 924 Bytes
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
33
{
description = "Proving the Coding Interview";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
parts.url = "github:hercules-ci/flake-parts";
};
outputs = { self, nixpkgs, parts }@inputs:
parts.lib.mkFlake { inherit inputs; } {
systems =
[ "aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ];
imports = let
buildInputs = pkgs:
with pkgs; [
pnpm
typescript
nodePackages.ts-node
uv
nodePackages.prettier
nixfmt
typst
typstyle
];
shell = { self, inputs, ... }: {
perSystem = { config, self', inputs', pkgs, ... }: {
devShells.default = pkgs.mkShell {
name = "Proving the Coding Interview";
buildInputs = buildInputs pkgs;
};
};
};
in [ shell ];
};
}