Voxelis/flake.nix

31 lines
837 B
Nix
Raw Normal View History

{
# Tooling file for Nix and NixOS to get a quick start
2024-12-10 16:51:04 -08:00
# Run 'nix develop' to enter the development shell
description = "pending";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
};
outputs = { self, nixpkgs, ...}:
let
2024-12-10 16:38:19 -08:00
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
2024-12-10 16:38:19 -08:00
2024-12-10 16:26:49 -08:00
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = [
# Run CI/CD actions locally
pkgs.act
2024-12-10 16:51:04 -08:00
# Lua 5.1 development tools
lua51Packages.lua
lua51Packages.luarocks
lua51Packages.busted
lua51Packages.luacheck
2024-12-10 16:26:49 -08:00
];
shellHook = ''
alias run_workflows='act -W $PWD/.forgejo/workflows -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest --pull=false'
echo "Run 'run_workflows' to run the workflows locally"
'';
};
};
}