-
Notifications
You must be signed in to change notification settings - Fork 2
/
github-pages.nix
51 lines (40 loc) · 1.88 KB
/
github-pages.nix
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
hercules-ci.github-pages.branch = "main";
perSystem = { config, pkgs, ... }:
let
github-pages-main-page = pkgs.writeText "README.md" ''
# [Transaction Village](https://github.com/Unbox-infinity/tx-village)
## Packages
- [tx-bakery](https://github.com/Unbox-infinity/tx-village/tree/main/tx-bakery) - Transaction Bakery - Rust based transaction builder
library
- [tx-bakery-ogmios](https://github.com/Unbox-infinity/tx-village/tree/main/tx-bakery-ogmios) - Ogmios support for Transaction Bakery
- [tx-indexer](https://github.com/Unbox-infinity/tx-village/tree/main/tx-indexer) - Transaction Indexer - Rust based chain follower
and indexer
## API References
- [tx-bakery](./artifacts/tx-bakery/tx_bakery/index.html)
- [tx-bakery-ogmios](./artifacts/tx-bakery-ogmios/tx_bakery_ogmios/index.html)
- [tx-indexer](./artifacts/tx-indexer/tx_indexer/index.html)
## Documents
- [Contributing guideline](https://github.com/Unbox-infinity/tx-village/blob/main/CONTRIBUTING.md)
- [License](https://github.com/Unbox-infinity/tx-village/blob/main/LICENSE)
'';
github-pages = pkgs.stdenv.mkDerivation {
name = "tx-village-github-pages";
src = ./.;
buildPhase = ''
mkdir $out
cp -L -v ${github-pages-main-page} $out/README.md
mkdir $out/artifacts
cp -L -v -r ${config.packages.tx-bakery-rust-doc}/share/doc $out/artifacts/tx-bakery
cp -L -v -r ${config.packages.tx-bakery-ogmios-rust-doc}/share/doc $out/artifacts/tx-bakery-ogmios
cp -L -v -r ${config.packages.tx-indexer-rust-doc}/share/doc $out/artifacts/tx-indexer
'';
};
in
{
packages = {
inherit github-pages-main-page github-pages;
};
hercules-ci.github-pages.settings.contents = github-pages;
};
}