This repository has been archived on 2024-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/hosts/carbon/services/website/default.nix
2024-05-29 17:15:20 +02:00

21 lines
322 B
Nix

{ pkgs }:
pkgs.stdenv.mkDerivation rec {
name = "website";
version = "0.1.25";
src = /home/grape/code/4o1x5/website;
buildInputs = [ pkgs.hugo ];
dontConfigure = true;
buildPhase = ''
cp -r $src/* .
${pkgs.hugo}/bin/hugo
'';
installPhase = ''
mkdir -p $out
cp -r public/* $out/
'';
}