From 83fb7bff591a864445f6df0a793e230086c66dc6 Mon Sep 17 00:00:00 2001 From: Tiago Ferreira Date: Mon, 2 Mar 2026 23:08:43 +0000 Subject: [PATCH] colima: add krunkit to PATH on aarch64-darwin Enables `colima start --vm-type krunkit` to work out of the box on Apple Silicon by conditionally including krunkit in the wrapper PATH when available on the host platform. --- pkgs/by-name/co/colima/package.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/co/colima/package.nix b/pkgs/by-name/co/colima/package.nix index 45e4eb62a74f..c03ab54dd7df 100644 --- a/pkgs/by-name/co/colima/package.nix +++ b/pkgs/by-name/co/colima/package.nix @@ -5,6 +5,7 @@ buildGoModule, fetchFromGitHub, installShellFiles, + krunkit, lima-full, makeWrapper, procps, @@ -60,11 +61,14 @@ buildGoModule (finalAttrs: { postInstall = '' wrapProgram $out/bin/colima \ --prefix PATH : ${ - lib.makeBinPath [ - # Suppress warning on `colima start`: https://github.com/abiosoft/colima/issues/1333 - lima-full - qemu - ] + lib.makeBinPath ( + [ + # Suppress warning on `colima start`: https://github.com/abiosoft/colima/issues/1333 + lima-full + qemu + ] + ++ lib.optional (lib.meta.availableOn stdenv.hostPlatform krunkit) krunkit + ) } installShellCompletion --cmd colima \