colima: patch sw_vers
on darwin
This commit is contained in:
parent
21eda9bc80
commit
cd20e3b85e
|
@ -1,5 +1,6 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, darwin
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
|
@ -44,6 +45,11 @@ buildGoModule rec {
|
|||
|
||||
subPackages = [ "cmd/colima" ];
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace util/util.go \
|
||||
--replace 'sw_vers' "${darwin.DarwinTools}/bin/sw_vers"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/colima \
|
||||
--prefix PATH : ${lib.makeBinPath [ lima-drv qemu ]}
|
||||
|
|
Loading…
Reference in a new issue