garagehq.deuxfleurs.fr/shell.nix
Alex Auvolat 1559433753
Some checks reported errors
continuous-integration/drone/push Build was killed
Add shell.nix and update garage source, include api docs copy
2022-11-16 12:06:57 +01:00

20 lines
506 B
Nix

with import <nixpkgs> {};
stdenv.mkDerivation {
name = "node";
buildInputs = [
nodejs
zola
];
shellHook = ''
export PATH="$PWD/node_modules/.bin/:$PATH"
function build {
rm -r content/documentation static/api
cp -rv garage/doc/book content/documentation
cp -rv garage/doc/api static/api
npm install
npx tailwindcss -i ./src/input.css -o ./static/style.css --minify
zola build -u https://garagehq.deuxfleurs.fr
}
'';
}