improve flake

This commit is contained in:
Leon Vatthauer 2024-04-06 17:39:16 +02:00
parent ff9baa852e
commit 595c00995c
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8
2 changed files with 7 additions and 2 deletions

2
.gitignore vendored
View file

@ -8,3 +8,5 @@ jsconfig.json
node_modules/
go.sum
.hugo_build.lock
# Nix
result

View file

@ -11,8 +11,11 @@
packages.resumee-website = pkgs.stdenv.mkDerivation {
name = "resumee-website";
src = self;
buildPhase = "${pkgs.hugo}/bin/hugo";
installPhase = "cp -r public $out";
nativeBuildInputs = [ pkgs.git pkgs.go pkgs.hugo ];
buildPhase = "hugo -d $out";
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "sha256-k46/umNJ9Q8FsZDCRvG/YmyU3IAkL5bzTvhWxdbNXso=";
};
defaultPackage = self.packages.${system}.resumee-website;