Skip to content

Commit

Permalink
Merge pull request #3 from WHForks/add-nix-flake
Browse files Browse the repository at this point in the history
Add a nix flake for simpler usage
  • Loading branch information
TurtlePU authored Oct 16, 2024
2 parents 88da9eb + f9e9359 commit 7d1d0a1
Show file tree
Hide file tree
Showing 3 changed files with 265 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
Church of Church is a union of students and graduates of FCS HSE interested in functional programming, formal verification, type theory, compilers & programming language design.

This is our project site made using [Material theme for MkDocs](https://squidfunk.github.io/mkdocs-material/). Please enjoy!
You can build it with
```shell
nix build .#documentation
```

Or run a development server that automatically updates on changes with
```shell
nix run .#watch-documentation
```

If you have any suggestions, please contact @TurtlePU.

Expand Down
232 changes: 232 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
description = "Church of Church website for HSE projects";

inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

mkdocs-flake.url = "github:applicative-systems/mkdocs-flake";
};

outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.mkdocs-flake.flakeModules.default
];
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
# Build the docs:
# `nix build .#documentation`
# Run in watch mode for live-editing-rebuilding:
# `nix run .#watch-documentation`
documentation.mkdocs-root = ./docs;
};
};
}

0 comments on commit 7d1d0a1

Please sign in to comment.