summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 5ac9906..01ae269 100644
--- a/default.nix
+++ b/default.nix
@@ -2,7 +2,7 @@
hugo,
lib,
stdenv,
- self ? null
+ self ? null,
}:
stdenv.mkDerivation {
pname = "tdback-net";
@@ -12,10 +12,18 @@ stdenv.mkDerivation {
nativeBuildInputs = [ hugo ];
buildPhase = ''
+ runHook preBuild
+
hugo build --minify
+
+ runHook postBuild
'';
installPhase = ''
+ runHook preInstall
+
mv public $out
+
+ runHook postInstall
'';
}