mirror of
https://github.com/abiosoft/colima.git
synced 2026-05-17 12:10:34 +00:00
0cbf719f54
* 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>
28 lines
510 B
Nix
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
|
|
'';
|
|
}
|