-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
33 lines (32 loc) · 1014 Bytes
/
Copy pathflake.nix
File metadata and controls
33 lines (32 loc) · 1014 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
{
inputs.parts.url = "github:hercules-ci/flake-parts";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.naked-shell.url = "github:90-008/mk-naked-shell";
outputs = inp:
inp.parts.lib.mkFlake {inputs = inp;} {
systems = ["x86_64-linux"];
imports = [inp.naked-shell.flakeModule];
perSystem = {
config,
system,
...
}: let
pkgs = inp.nixpkgs.legacyPackages.${system};
in {
devShells.default = config.mk-naked-shell.lib.mkNakedShell {
name = "nucleus-devshell";
packages = with pkgs; [
nodejs-slim_latest deno
];
shellHook = ''
export PATH="$PATH:$PWD/node_modules/.bin"
'';
};
packages.nucleus-modules = pkgs.callPackage ./nix/modules.nix {};
packages.nucleus = pkgs.callPackage ./nix {
inherit (config.packages) nucleus-modules;
};
packages.default = config.packages.nucleus;
};
};
}