1{
2 inputs.parts.url = "github:hercules-ci/flake-parts";
3 inputs.nixpkgs.url = "github:nixos/nixpkgs";
4 inputs.naked-shell.url = "github:90-008/mk-naked-shell";
5
6 outputs = inp:
7 inp.parts.lib.mkFlake {inputs = inp;} {
8 systems = ["x86_64-linux"];
9 imports = [inp.naked-shell.flakeModule];
10 perSystem = {
11 config,
12 system,
13 ...
14 }: let
15 pkgs = inp.nixpkgs.legacyPackages.${system};
16 in {
17 devShells.default = config.mk-naked-shell.lib.mkNakedShell {
18 name = "nucleus-devshell";
19 packages = with pkgs; [
20 nodejs-slim_latest deno
21 ];
22 shellHook = ''
23 export PATH="$PATH:$PWD/node_modules/.bin"
24 '';
25 };
26 packages.nucleus-modules = pkgs.callPackage ./nix/modules.nix {};
27 packages.nucleus = pkgs.callPackage ./nix {
28 inherit (config.packages) nucleus-modules;
29 };
30 packages.default = config.packages.nucleus;
31 };
32 };
33}