.
This commit is contained in:
parent
fa02698d95
commit
6623ee03f6
31 changed files with 45 additions and 32 deletions
16
hub.nix
16
hub.nix
|
|
@ -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/
|
||||
'';
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue