improve flake
This commit is contained in:
parent
ff9baa852e
commit
595c00995c
2 changed files with 7 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -8,3 +8,5 @@ jsconfig.json
|
|||
node_modules/
|
||||
go.sum
|
||||
.hugo_build.lock
|
||||
# Nix
|
||||
result
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue