colima: add darwin tools to native build inputs
This commit is contained in:
parent
d23c04cdbd
commit
332073ba42
|
@ -32,7 +32,8 @@ buildGoModule rec {
|
|||
'';
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper ]
|
||||
++ lib.optionals stdenv.isDarwin [ darwin.DarwinTools ];
|
||||
|
||||
vendorSha256 = "sha256-Iz1LYL25NpkztTM86zrLwehub8FzO1IlwZqCPW7wDN4=";
|
||||
|
||||
|
@ -43,11 +44,6 @@ buildGoModule rec {
|
|||
-X github.com/abiosoft/colima/config.revision=$(cat .git-revision)"
|
||||
'';
|
||||
|
||||
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