Compare commits

...

1 commit

Author SHA1 Message Date
Victor Mignot 2a70183c5f
remove hugo's build lock and add flake overlay 2024-09-28 21:44:54 +02:00
5 changed files with 35 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
result/
public/
resources/
.hugo_build_lock

View file

18
default.nix Normal file
View 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
View file

@ -0,0 +1,11 @@
{
description = "Victor Mignot's blog";
inputs = { };
outputs = { self, ... }: {
overlays.default = final: prev: {
dalaran-fr-blog = prev.callPackage ./default.nix { };
};
};
}

View file

@ -2,6 +2,11 @@
pkgs.mkShell {
name = "hugo-shell";
packages = with pkgs; [
nixfmt-rfc-style
nil
];
nativeBuildInputs = with pkgs; [
hugo
];