fix build
This commit is contained in:
10
default.nix
10
default.nix
@@ -1,13 +1,19 @@
|
|||||||
{ stdenv, hextra, hugo }: stdenv.mkDerivation
|
{ lib, stdenv, hextra, hugo, buildProxy ? null }: stdenv.mkDerivation
|
||||||
{
|
{
|
||||||
name = "blog";
|
name = "blog";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
nativeBuildInputs = [ hugo ];
|
nativeBuildInputs = [ hugo ];
|
||||||
|
preBuild = lib.optionalString (buildProxy != null) ''source ${buildProxy}'';
|
||||||
configurePhase =
|
configurePhase =
|
||||||
''
|
''
|
||||||
mkdir themes
|
mkdir themes
|
||||||
ln -s ${hextra} themes/hextra
|
ln -s ${hextra} themes/hextra
|
||||||
'';
|
'';
|
||||||
buildPhase = "hugo";
|
buildPhase =
|
||||||
|
''
|
||||||
|
runHook preBuild
|
||||||
|
hugo
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
installPhase = "cp -r public $out";
|
installPhase = "cp -r public $out";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user