leonard: Add amalie-mansaker-no

This commit is contained in:
2025-11-23 17:22:20 +01:00
parent 9eed01bb4a
commit 814517103e
4 changed files with 42 additions and 9 deletions

View File

@@ -0,0 +1,26 @@
{ 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 = "49f9d5436f";
hash = "sha256-KYAIL/MLMlaVaa5eJHy1RFw4NP7ZWDR3GRD2qgBDvY8=";
};
nativeBuildInputs = [ hugo ];
buildPhase = ''
cp -r $src/* .
${hugo}/bin/hugo
'';
installPhase = ''
runHook preInstall
mkdir -p $out
cp -r public/* $out/
runHook postInstall
'';
}