Merge pull request #206285 from dennajort/lima-0.14.1
lima: 0.13.0 -> 0.14.2
This commit is contained in:
@@ -1,31 +1,41 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, qemu
|
||||
, xcbuild
|
||||
, sigtool
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "lima";
|
||||
version = "0.13.0";
|
||||
version = "0.14.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lima-vm";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-alE7fUVxJRkLMtdia5ruHxh9nlWIubM0J6iIrmpreRM=";
|
||||
sha256 = "sha256-g4FvkjBviI1m8zlc+GK/09dIqVkTQ2MqqK1Wkyu4qBc=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-Kb2R8USWOWRFMjQO3tjdl5UHOzzb2B3ld+5vO2gF3KY=";
|
||||
vendorSha256 = "sha256-l53MTxLY/uid+0U/eY96l0aBWKImST1gN2BARilh2K0=";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ]
|
||||
++ lib.optionals stdenv.isDarwin [ xcbuild.xcrun sigtool ];
|
||||
|
||||
# clean fails with read only vendor dir
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace 'binaries: clean' 'binaries:'
|
||||
substituteInPlace Makefile \
|
||||
--replace 'binaries: clean' 'binaries:' \
|
||||
--replace 'codesign --entitlements vz.entitlements -s -' 'codesign --force --entitlements vz.entitlements -s -'
|
||||
'';
|
||||
|
||||
# It attaches entitlements with codesign and strip removes those,
|
||||
# voiding the entitlements and making it non-operational.
|
||||
dontStrip = stdenv.isDarwin;
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
make "VERSION=v${version}" binaries
|
||||
|
||||
@@ -37252,7 +37252,9 @@ with pkgs;
|
||||
|
||||
colima = callPackage ../applications/virtualization/colima { };
|
||||
|
||||
lima = callPackage ../applications/virtualization/lima { };
|
||||
lima = callPackage ../applications/virtualization/lima {
|
||||
inherit (darwin) sigtool;
|
||||
};
|
||||
|
||||
logtop = callPackage ../tools/misc/logtop { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user