2025-08-02 00:07:09 +07:00
|
|
|
{
|
2025-08-02 10:24:01 +07:00
|
|
|
description = "Grimu-R base";
|
2025-08-02 00:07:09 +07:00
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2025-08-25 18:17:01 +07:00
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
2025-09-15 13:43:40 +07:00
|
|
|
flake-root.url = "github:srid/flake-root";
|
2025-08-05 21:21:46 +07:00
|
|
|
deno-with-packages.url = "github:voleum-org/deno-with-packages";
|
2025-08-02 00:07:09 +07:00
|
|
|
};
|
|
|
|
|
|
2025-08-25 18:17:01 +07:00
|
|
|
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
|
imports = [
|
2025-09-15 13:43:40 +07:00
|
|
|
inputs.flake-root.flakeModule
|
|
|
|
|
inputs.deno-with-packages.flakeModule
|
2025-08-25 18:17:01 +07:00
|
|
|
];
|
|
|
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
|
perSystem = { self', pkgs, config, system, ... }: let
|
2025-09-15 13:43:40 +07:00
|
|
|
lib = import ./nix;
|
2025-08-25 18:17:01 +07:00
|
|
|
shelf = import ./shelf {
|
|
|
|
|
inherit pkgs system lib;
|
|
|
|
|
};
|
2025-10-14 12:41:15 +07:00
|
|
|
in rec {
|
2025-09-15 13:43:40 +07:00
|
|
|
deno = {
|
|
|
|
|
enable = true;
|
2025-10-05 16:13:03 +07:00
|
|
|
lockfiles = shelf.lockfiles ++ [ ./platform/loom/deno.lock ];
|
2025-09-15 13:43:40 +07:00
|
|
|
};
|
|
|
|
|
|
2025-08-25 18:17:01 +07:00
|
|
|
packages.website =
|
|
|
|
|
import ./nix/website.nix { inherit pkgs; root = ./.; };
|
2025-08-02 14:14:41 +07:00
|
|
|
|
2025-10-14 12:41:15 +07:00
|
|
|
packages.loom = import ./platform { inherit pkgs; denoCache = config.packages.deno-cache; };
|
|
|
|
|
|
2025-08-25 18:17:01 +07:00
|
|
|
devShells.default = pkgs.mkShell {
|
2025-10-14 12:41:15 +07:00
|
|
|
buildInputs = with pkgs; [ config.packages.deno pandoc reuse packages.loom ];
|
2025-09-15 13:43:40 +07:00
|
|
|
inputsFrom = [ config.flake-root.devShell ];
|
2025-08-25 18:17:01 +07:00
|
|
|
shellHook = ''
|
|
|
|
|
echo "Available scrolls:"
|
|
|
|
|
echo ${pkgs.lib.escapeShellArg (builtins.toJSON shelf.scrolls)} | jq .
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-08-02 00:07:09 +07:00
|
|
|
}
|