diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-09-09 17:59:41 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-09-09 17:59:41 +0100 |
commit | 7911545e38594f749ee4d61b9e750db036586c11 (patch) | |
tree | 4b43699ed2d7a7f5121ac090d4080ed5b2607a0d /default.nix | |
parent | 0d9c3299bc9db09cb69824f372794ee297953ced (diff) |
Updating nixos blog post and `default.nix`
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 0237c03..dd9bb7c 100644 --- a/default.nix +++ b/default.nix @@ -2,6 +2,7 @@ with import <nixpkgs> {}; stdenv.mkDerivation { name = "website"; + src = ./.; buildInputs = with pkgs; [ python3 @@ -10,4 +11,16 @@ stdenv.mkDerivation { markdown webassets ]); + + buildPhase = '' + runHook preBuild + make html + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + mv output $out + runHook postInstall + ''; } |