Skip to content

Commit

Permalink
Merge pull request #206285 from dennajort/lima-0.14.1
Browse files Browse the repository at this point in the history
lima: 0.13.0 -> 0.14.2
  • Loading branch information
wegank authored Jan 23, 2023
2 parents ec19e85 + fa65a5e commit 0797f5f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
20 changes: 15 additions & 5 deletions pkgs/applications/virtualization/lima/default.nix
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };

Expand Down

0 comments on commit 0797f5f

Please sign in to comment.