website/pkgs/website.nix

22 lines
428 B
Nix
Raw Normal View History

2023-01-24 17:20:04 +00:00
{
jekyll, tailwindWithTypography
, stdenv
}:
stdenv.mkDerivation {
pname = "moxxyv2-website";
version = "0.1.0";
src = ./../.;
buildPhase = ''
2023-01-24 17:35:55 +00:00
${jekyll}/bin/jekyll build --future
2023-01-24 17:20:04 +00:00
cp -r ./assets _site/assets
${tailwindWithTypography}/bin/tailwindcss --input ./input.css --output ./_site/assets/css/index.css
'';
installPhase = ''
2023-01-25 18:25:32 +00:00
mkdir -p $out/srv/www/
mv _site/ $out/srv/www/website
2023-01-24 17:20:04 +00:00
'';
}