.
This commit is contained in:
parent
c9179e5bfb
commit
fa02698d95
2 changed files with 25 additions and 0 deletions
13
flake.nix
Normal file
13
flake.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
description = "My blog";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs }:
|
||||
{
|
||||
packages.x86_64-linux.default = nixpkgs.lib.cleanSource (nixpkgs.callPackage ./hub.nix { });
|
||||
};
|
||||
}
|
||||
12
hub.nix
Normal file
12
hub.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ fetchurl, hugo, ... }:
|
||||
|
||||
hugo.overrideAttrs (old: {
|
||||
buildPhase = ''
|
||||
hugo --minify
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r public/* $out/
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue