-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
30 lines (29 loc) · 769 Bytes
/
Copy pathflake.nix
File metadata and controls
30 lines (29 loc) · 769 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
{
inputs.parts.url = "github:hercules-ci/flake-parts";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
outputs = inp:
inp.parts.lib.mkFlake {inputs = inp;} {
systems = ["x86_64-linux"];
perSystem = {
lib,
config,
pkgs,
...
}: {
devShells.default = pkgs.mkShell {
name = "drop-devshell";
packages = with pkgs; [
bun
typescript-language-server
];
shellHook = ''
export PATH="$PATH:$PWD/node_modules/.bin"
'';
};
packages.drop = pkgs.callPackage ./nix {
modules = pkgs.callPackage ./nix/modules.nix {};
};
packages.default = config.packages.drop;
};
};
}