2023-01-24 17:20:04 +00:00
|
|
|
{
|
2023-01-25 18:28:00 +00:00
|
|
|
jekyll, jekyllPackages, tailwindWithTypography
|
2023-01-24 17:20:04 +00:00
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "moxxyv2-website";
|
2023-05-07 09:44:25 +00:00
|
|
|
version = "20230507";
|
2023-01-24 17:20:04 +00:00
|
|
|
src = ./../.;
|
|
|
|
|
2023-01-25 18:28:00 +00:00
|
|
|
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
|
|
|
'';
|
|
|
|
}
|