mykiwi/mykiwi.blogpublic Fork 0
1328429
Commits
Clone
git clone https://git.rickub.com/mykiwi/mykiwi.blog.git
git clone ssh://git@rickub.com/mykiwi/mykiwi.blog.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Add nix build target and README

Adds a packages.default derivation that builds the Hugo site with a
pinned hugo binary, gitignores build output (result/, public/), and
documents the dev shell and build command in README.
Romain Gautier committed 2026-09-17T16:58:53+02:00 Browse files
1328429 parent: 373f934
added .gitignore +2 -0
new file mode 100644
@@ -0,0 +1,2 @@
1+result
2+public/
new file mode 100644
@@ -0,0 +1,2 @@
1+result
2+public/
added README.md +17 -0
new file mode 100644
@@ -0,0 +1,17 @@
1+# mykiwi.blog
2+
3+## Development shell
4+
5+```sh
6+nix develop
7+```
8+
9+Gives you `hugo` on `PATH`, pinned via `hugoVersion` in `flake.nix`.
10+
11+## Building
12+
13+```sh
14+nix build
15+```
16+
17+Builds the site with Hugo and outputs it to `./result`.
new file mode 100644
@@ -0,0 +1,17 @@
1+# mykiwi.blog
2+
3+## Development shell
4+
5+```sh
6+nix develop
7+```
8+
9+Gives you `hugo` on `PATH`, pinned via `hugoVersion` in `flake.nix`.
10+
11+## Building
12+
13+```sh
14+nix build
15+```
16+
17+Builds the site with Hugo and outputs it to `./result`.
modified flake.nix +10 -1
@@ -8,13 +8,22 @@
88 system = "x86_64-linux";
99 mv = multiverse.multiverse.${system};
1010 hugoVersion = "0.166.0";
11+ hugo = mv.version "hugo" hugoVersion;
1112 in
1213 {
14+ packages.${system}.default = mv.tip.stdenvNoCC.mkDerivation {
15+ name = "mykiwi-blog";
16+ src = ./blog;
17+ nativeBuildInputs = [ hugo ];
18+ buildPhase = "hugo --minify --destination $out";
19+ dontInstall = true;
20+ };
21+
1322 devShells.${system}.default = mv.tip.mkShell {
1423 name = "mykiwi-blog";
1524
1625 packages = [
17- (mv.version "hugo" hugoVersion)
26+ hugo
1827 ];
1928
2029 shellHook = ''
@@ -8,13 +8,22 @@
8 system = "x86_64-linux";8 system = "x86_64-linux";
9 mv = multiverse.multiverse.${system};9 mv = multiverse.multiverse.${system};
10 hugoVersion = "0.166.0";10 hugoVersion = "0.166.0";
11+ hugo = mv.version "hugo" hugoVersion;
11 in12 in
12 {13 {
14+ packages.${system}.default = mv.tip.stdenvNoCC.mkDerivation {
15+ name = "mykiwi-blog";
16+ src = ./blog;
17+ nativeBuildInputs = [ hugo ];
18+ buildPhase = "hugo --minify --destination $out";
19+ dontInstall = true;
20+ };
21+
13 devShells.${system}.default = mv.tip.mkShell {22 devShells.${system}.default = mv.tip.mkShell {
14 name = "mykiwi-blog";23 name = "mykiwi-blog";
15 24
16 packages = [25 packages = [
17- (mv.version "hugo" hugoVersion)26+ hugo
18 ];27 ];
19 28
20 shellHook = ''29 shellHook = ''