remove hugo's build lock and add flake overlay
This commit is contained in:
parent
9546c8929f
commit
2a70183c5f
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
result/
|
||||
public/
|
||||
resources/
|
||||
.hugo_build_lock
|
||||
|
|
18
default.nix
Normal file
18
default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ stdenv, lib, hugo, ... }:
|
||||
stdenv.mkDerivation {
|
||||
name = "dalaran.fr";
|
||||
|
||||
src = lib.cleanSource ./.;
|
||||
|
||||
nativeBuildInputs = [
|
||||
hugo
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
hugo --minify
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mv public $out
|
||||
'';
|
||||
}
|
11
flake.nix
Normal file
11
flake.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
description = "Victor Mignot's blog";
|
||||
|
||||
inputs = { };
|
||||
|
||||
outputs = { self, ... }: {
|
||||
overlays.default = final: prev: {
|
||||
dalaran-fr-blog = prev.callPackage ./default.nix { };
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue