tvl-depot/users/wpcarro/website/blog/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
283 B
Nix
Raw Normal View History

{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "blog.wpcarro.dev";
buildInputs = with pkgs; [ hugo ];
src = builtins.path { path = ./.; name = "blog"; };
buildPhase = ''
mkdir -p $out
${pkgs.hugo}/bin/hugo --minify --destination $out
'';
dontInstall = true;
}