2021-12-14 04:51:48 +01:00
|
|
|
{ pkgs, depot, ... }:
|
2020-03-20 01:22:13 +01:00
|
|
|
|
2021-12-27 16:52:53 +01:00
|
|
|
rec {
|
|
|
|
inherit (depot.users) wpcarro;
|
|
|
|
|
|
|
|
header = "${./fragments/header.html}";
|
|
|
|
footer = "${./fragments/footer.html}";
|
|
|
|
addendum = "${./fragments/addendum.html}";
|
|
|
|
|
|
|
|
root = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "wpcarro.dev";
|
|
|
|
src = builtins.path { path = ./.; name = "website"; };
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
|
|
|
|
cat ${header} \
|
|
|
|
${./fragments/homepage.html} \
|
|
|
|
${footer} \
|
|
|
|
${addendum} > $out/index.html
|
|
|
|
|
|
|
|
mkdir -p $out/habits
|
|
|
|
cp -r ${wpcarro.website.habit-screens} $out/habits/index.html
|
|
|
|
|
|
|
|
cp -r ${wpcarro.website.blog.root} $out/blog
|
|
|
|
'';
|
|
|
|
};
|
2020-03-20 01:22:13 +01:00
|
|
|
}
|