colima: make lima derivation configurable

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
This commit is contained in:
tricktron 2023-02-05 13:56:26 +01:00 committed by GitHub
parent e75161f4ba
commit 06a3791603
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,12 +9,11 @@
, qemu
, testers
, colima
# use lima-bin on darwin to support native macOS virtualization
# https://github.com/NixOS/nixpkgs/pull/209171
, lima-drv ? if stdenv.isDarwin then lima-bin else lima
}:
# use lima-bin on darwin to support native macOS virtualization
# https://github.com/NixOS/nixpkgs/pull/209171
let lima-drv = if stdenv.isDarwin then lima-bin else lima;
in
buildGoModule rec {
pname = "colima";
version = "0.5.2";