We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f81f03f commit 77af624Copy full SHA for 77af624
.gitignore
@@ -3,3 +3,4 @@ public/
3
.direnv
4
.hugo_build.lock
5
result/
6
+nix-portable
flake.nix
@@ -39,9 +39,12 @@
39
pkgs.hugo
40
];
41
42
+ patchPhase = ''
43
+ mkdir -p themes/
44
+ cp -r ${even-theme}/ themes/even
45
+ '';
46
+
47
buildPhase = ''
- mkdir -p themes/even/
- cp -r ${even-theme} themes/even
48
hugo ${extraBuildArgs}
49
'';
50
portable_build.sh
@@ -0,0 +1,9 @@
1
+#!/usr/bin/env bash
2
+set -e
+curl -L https://github.com/DavHau/nix-portable/releases/latest/download/nix-portable-$(uname -m) > ./nix-portable
+chmod +x ./nix-portable
7
8
+./nix-portable nix build
9
+./nix-portable nix-shell -p bash --run "cp -rL result public"
0 commit comments