Merge pull request #219807 from tricktron/f-colima-fix-sw_vers
colima: patch `sw_vers` on darwin
This commit is contained in:
commit
a028e2873d
|
@ -1,5 +1,6 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, darwin
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
|
@ -31,7 +32,8 @@ buildGoModule rec {
|
|||
'';
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper ]
|
||||
++ lib.optionals stdenv.isDarwin [ darwin.DarwinTools ];
|
||||
|
||||
vendorSha256 = "sha256-Iz1LYL25NpkztTM86zrLwehub8FzO1IlwZqCPW7wDN4=";
|
||||
|
||||
|
@ -42,8 +44,6 @@ buildGoModule rec {
|
|||
-X github.com/abiosoft/colima/config.revision=$(cat .git-revision)"
|
||||
'';
|
||||
|
||||
subPackages = [ "cmd/colima" ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/colima \
|
||||
--prefix PATH : ${lib.makeBinPath [ lima-drv qemu ]}
|
||||
|
|
Loading…
Reference in a new issue