forked from mad-star-studio/Voxelis
.
This commit is contained in:
parent
bc93309807
commit
18e0963d89
2 changed files with 2 additions and 6 deletions
27
flake.nix
Normal file
27
flake.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
# Tooling file for Nix and NixOS to get a quick start
|
||||
description = "pending";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ...}:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit self; };
|
||||
supportedSystems = [ "x86_64-linux" ];
|
||||
in {
|
||||
devShells = builtins.map(system:
|
||||
${system}.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
# Run CI/CD actions locally
|
||||
pkgs.act
|
||||
];
|
||||
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"
|
||||
'';
|
||||
}
|
||||
) ${supportedSystems};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue