-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
59 lines (44 loc) · 1.06 KB
/
flake.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
52
53
54
55
56
57
58
59
{
inputs = {
devenv.url = "github:cachix/devenv";
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nixos/nixpkgs/23.05";
};
outputs =
inputs@{ self
, flake-parts
, nixpkgs
, ...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
imports = [
inputs.devenv.flakeModule
];
perSystem = { pkgs, lib, config, system, ... }: {
packages.default = pkgs.stdenv.mkDerivation {
name = "rivi-website";
src = ./.;
phases = [ "unpackPhase" "buildPhase" ];
buildInputs = with pkgs; [
pandoc
];
buildPhase = ''
mkdir -p $out
cp favicon.svg robots.txt rss.xml $out
pandoc index.md --katex -o $out/index.html
'';
};
devenv.shells.default = {
packages = with pkgs; [
pandoc
];
};
};
};
}