This commit is contained in:
ryfrd 2026-02-16 15:55:05 +00:00
parent fa02698d95
commit 6623ee03f6
31 changed files with 45 additions and 32 deletions

16
hub.nix
View file

@ -1,6 +1,16 @@
{ fetchurl, hugo, ... }:
{
lib,
stdenv,
hugo,
}:
stdenv.mkDerivation {
pname = "blog";
version = "0.1.0";
src = lib.cleanSource ./.;
buildInputs = [ hugo ];
hugo.overrideAttrs (old: {
buildPhase = ''
hugo --minify
'';
@ -9,4 +19,4 @@ hugo.overrideAttrs (old: {
mkdir -p $out
cp -r public/* $out/
'';
})
}