27 lines
511 B
Nix
27 lines
511 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 = "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
|
|
'';
|
|
}
|
|
|