{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
flake-utils.url = "github:numtide/flake-utils";
commandbox = {
url = "github:FeliciousX/commandbox-flake";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs = { self, nixpkgs, flake-utils, commandbox }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
box = commandbox.packages.${system}.default.override {
# defaults to nixpkgs.jdk if not specified
jdk = pkgs.jdk11_headless;
};
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ];
packages = [
box
];
};
});
}
- Support windows binary when running on windows
- Support non-flake
Currently updating commandbox version is done manually.
- Get the commandbox download URL for the latest version from https://commandbox.ortusbooks.com/setup/download
- Update the url in
flake.nix
- Change the sha256 hash to an empty string
- Run
nix flake update
to update flake.lock file - Run
nix shell
to make surebox
command is available - Update sha256 hash from the output
- Check commandbox version by running
box version
- Commit changes and create a PR