summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/virtualization
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-23 14:24:45 +0100
committerGitHub <noreply@github.com>2023-01-23 14:24:45 +0100
commit0797f5ff5777896cdb257a77635c95254b41d09f (patch)
treea79ecbc55f57e33e8d2cc47f6be807aec5adb3de /pkgs/applications/virtualization
parentec19e85cec4c752fbbf7996b79630a02e9bdff7b (diff)
parentfa65a5e2a6b2cb42e3d3707a630fb9d1c75a6b50 (diff)
Merge pull request #206285 from dennajort/lima-0.14.1
lima: 0.13.0 -> 0.14.2
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r--pkgs/applications/virtualization/lima/default.nix20
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/applications/virtualization/lima/default.nix b/pkgs/applications/virtualization/lima/default.nix
index 03d049477b5d..29dd9b27232e 100644
--- a/pkgs/applications/virtualization/lima/default.nix
+++ b/pkgs/applications/virtualization/lima/default.nix
@@ -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