Initial commit
This commit is contained in:
21
pkgs/page.nix
Normal file
21
pkgs/page.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
jekyll, tailwindWithTypography
|
||||
, stdenv
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "moxxyv2-website";
|
||||
version = "0.1.0";
|
||||
src = ./../.;
|
||||
|
||||
buildPhase = ''
|
||||
${jekyll}/bin/jekyll build
|
||||
cp -r ./assets _site/assets
|
||||
${tailwindWithTypography}/bin/tailwindcss --input ./input.css --output ./_site/assets/css/index.css
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/var/www/
|
||||
cp -vr _site/ $out/var/www/website
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user