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/
|
node_modules/
|
||||||
go.sum
|
go.sum
|
||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
|
# Nix
|
||||||
|
result
|
||||||
|
|
|
@ -11,8 +11,11 @@
|
||||||
packages.resumee-website = pkgs.stdenv.mkDerivation {
|
packages.resumee-website = pkgs.stdenv.mkDerivation {
|
||||||
name = "resumee-website";
|
name = "resumee-website";
|
||||||
src = self;
|
src = self;
|
||||||
buildPhase = "${pkgs.hugo}/bin/hugo";
|
nativeBuildInputs = [ pkgs.git pkgs.go pkgs.hugo ];
|
||||||
installPhase = "cp -r public $out";
|
buildPhase = "hugo -d $out";
|
||||||
|
outputHashAlgo = "sha256";
|
||||||
|
outputHashMode = "recursive";
|
||||||
|
outputHash = "sha256-k46/umNJ9Q8FsZDCRvG/YmyU3IAkL5bzTvhWxdbNXso=";
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultPackage = self.packages.${system}.resumee-website;
|
defaultPackage = self.packages.${system}.resumee-website;
|
||||||
|
|
Loading…
Reference in a new issue