oliverdavies.uk/devenv.nix

48 lines
938 B
Nix
Raw Normal View History

2025-02-23 01:52:42 +00:00
{ pkgs, ... }:
2025-02-13 20:16:27 +00:00
{
2025-02-23 01:52:42 +00:00
packages = with pkgs; [
git
tailwindcss
];
2025-02-13 20:16:27 +00:00
languages = {
php.enable = true;
};
processes = {
sculpin.exec = "vendor/bin/sculpin generate --server --watch";
2025-02-23 01:52:42 +00:00
tailwind = {
exec = "tailwindcss --config tailwind.config.ts --input css/tailwind.css --output ../source/build/tailwind.css --watch";
process-compose = {
is_tty = true;
working_dir = "assets";
};
};
2025-02-13 20:16:27 +00:00
};
2025-02-23 01:52:42 +00:00
tasks = { };
2025-02-13 20:16:27 +00:00
enterShell = ''
[[ ! -d vendor ]] && composer install
'';
enterTest = '''';
2025-02-23 01:29:58 +00:00
scripts = {
publish.exec = ''
sculpin generate --env prod
rsync -avz static/ output_prod
rsync -avz output_prod/ ssh.oliverdavies.uk:/var/www/vhosts/www.oliverdavies.uk
'';
2025-02-23 01:52:42 +00:00
"tailwind-build".exec = ''
cd assets
tailwindcss --config tailwind.config.ts --input css/tailwind.css --output ../source/build/tailwind.css --minify
'';
2025-02-23 01:29:58 +00:00
};
2025-02-13 20:16:27 +00:00
}