papatutuwawa.pages.polynom.me/pkgs/website.nix

26 lines
522 B
Nix

{
jekyll, jekyllPackages, tailwindWithTypography
, stdenv
}:
stdenv.mkDerivation {
pname = "moxxyv2-website";
version = "20230507";
src = ./../.;
buildInputs = [
jekyll jekyllPackages tailwindWithTypography
];
buildPhase = ''
${jekyll}/bin/jekyll build --future
cp -r ./assets _site/assets
${tailwindWithTypography}/bin/tailwindcss --input ./input.css --output ./_site/assets/css/index.css
'';
installPhase = ''
mkdir -p $out/srv/www/
mv _site/ $out/srv/www/website
'';
}