27 lines
541 B
Nix
27 lines
541 B
Nix
{ stdenv, fetchgit, hugo }:
|
|
stdenv.mkDerivation {
|
|
name = "www-amalie-mansaker-no";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.feal.no/amalieem/amalie.mansaker.no.git";
|
|
fetchSubmodules = true;
|
|
|
|
rev = "58265a25b37bf2286e0704e02ab3dde56a348d8b";
|
|
hash = "sha256-dPcv0AGjsWqDCWCjV2PeklBrWsIawLAccRQEYe3teOM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hugo ];
|
|
buildPhase = ''
|
|
cp -r $src/* .
|
|
${hugo}/bin/hugo
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
cp -r public/* $out/
|
|
runHook postInstall
|
|
'';
|
|
}
|
|
|