36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{
|
|
description = "Grimu-R base";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
deno-with-packages.url = "github:voleum-org/deno-with-packages";
|
|
deno-with-packages.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
imports = [
|
|
];
|
|
systems = [ "x86_64-linux" ];
|
|
perSystem = { self', pkgs, config, system, ... }: let
|
|
lib = import ./nix // inputs.deno-with-packages.lib.${system};
|
|
shelf = import ./shelf {
|
|
inherit pkgs system lib;
|
|
};
|
|
in {
|
|
packages.website =
|
|
import ./nix/website.nix { inherit pkgs; root = ./.; };
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [ deno pandoc reuse ];
|
|
shellHook = ''
|
|
export DENO_DIR=$PWD/.deno_cache
|
|
${shelf.setupScript}/bin/install-deno-cache
|
|
|
|
echo "Available scrolls:"
|
|
echo ${pkgs.lib.escapeShellArg (builtins.toJSON shelf.scrolls)} | jq .
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|