mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 06:18:52 +08:00
14 lines
254 B
Nix
14 lines
254 B
Nix
|
{ stdenv, hextra, hugo }: stdenv.mkDerivation
|
||
|
{
|
||
|
name = "blog";
|
||
|
src = ./.;
|
||
|
nativeBuildInputs = [ hugo ];
|
||
|
configurePhase =
|
||
|
''
|
||
|
mkdir themes
|
||
|
ln -s ${hextra} themes/hextra
|
||
|
'';
|
||
|
buildPhase = "hugo";
|
||
|
installPhase = "cp -r public $out";
|
||
|
}
|