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

26 lines
522 B
Nix
Raw Normal View History

2023-01-24 17:20:04 +00:00
{
jekyll, jekyllPackages, tailwindWithTypography
2023-01-24 17:20:04 +00:00
, stdenv
}:
stdenv.mkDerivation {
pname = "moxxyv2-website";
2023-08-27 11:28:24 +00:00
version = "20230827";
2023-01-24 17:20:04 +00:00
src = ./../.;
buildInputs = [
jekyll jekyllPackages tailwindWithTypography
];
2023-01-24 17:20:04 +00:00
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
'';
}