21 lines
322 B
Nix
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/
|
|
'';
|
|
}
|