diff --git a/.gitignore b/.gitignore index a04655b..5848c55 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ jsconfig.json node_modules/ go.sum .hugo_build.lock +# Nix +result diff --git a/flake.nix b/flake.nix index 9c143a7..f10eae4 100644 --- a/flake.nix +++ b/flake.nix @@ -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;