fix building with nix

This commit is contained in:
Tim Schubert 2021-08-19 20:50:04 +02:00
parent fdf65e138d
commit 52d6b452f7
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
3 changed files with 62 additions and 1 deletions

View file

@ -1,7 +1,12 @@
{ stdenv, hugo }:
{ stdenv, hugo, hugo-theme-anubis }:
stdenv.mkDerivation rec {
src = ./.;
nativeBuildInputs = [ hugo ];
# avoid git submodules using flakes :-)
patchPhase = ''
mkdir -p themes/
ln -s ${hugo-theme-anubis} themes/anubis
'';
buildPhase = ''
hugo
'';