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 = "15142c93da33414a0be49384a03b704ad95e31be";
|
|
hash = "sha256-oq5NC11UDYjYKToPsEXovCiIBD5adamVwi3scOFzpHM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hugo ];
|
|
buildPhase = ''
|
|
cp -r $src/* .
|
|
${hugo}/bin/hugo
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
cp -r public/* $out/
|
|
runHook postInstall
|
|
'';
|
|
}
|
|
|