Files
colima/shell.nix
Abiola Ibrahim 0cbf719f54 k3s: customizable listen port (#1419)
* Bump flake to a compatible golang version

Signed-off-by: Devon Stewart <blast@hardchee.se>

* nix flake update

Signed-off-by: Devon Stewart <blast@hardchee.se>

* Add gotools to ensure we have goimports

Signed-off-by: Devon Stewart <blast@hardchee.se>

* make fmt

Signed-off-by: Devon Stewart <blast@hardchee.se>

* Clarify drifted arg name

Signed-off-by: Devon Stewart <blast@hardchee.se>

* Thread .kubernetes.listenPort through to install functions

Signed-off-by: Devon Stewart <blast@hardchee.se>

---------

Signed-off-by: Devon Stewart <blast@hardchee.se>
Co-authored-by: Devon Stewart <blast@hardchee.se>
2025-09-25 11:46:26 +01:00

28 lines
510 B
Nix

{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = with pkgs.buildPackages; [
go_1_23
gotools
git
lima
qemu
];
shellHook = ''
echo Nix Shell with $(go version)
echo
COLIMA_BIN="$PWD/$(make print-binary-name)"
if [ ! -f "$COLIMA_BIN" ]; then
echo "Run 'make' to build Colima."
echo
fi
set -x
set -x
alias colima="$COLIMA_BIN"
set +x
'';
}