summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/virtualization/lima
diff options
context:
space:
mode:
authorJB Gosselin <1536838+dennajort@users.noreply.github.com>2022-12-15 13:28:53 -0500
committerJB Gosselin <1536838+dennajort@users.noreply.github.com>2022-12-15 13:28:53 -0500
commit4f67556113644a04d9b60094bcb396fcbd83cd52 (patch)
tree977ca8c0482197a11144aaacb13dff5aef004161 /pkgs/applications/virtualization/lima
parent234c9883745d7630768225d976784a81b3556694 (diff)
lima: 0.13.0 -> 0.14.1
Diffstat (limited to 'pkgs/applications/virtualization/lima')
-rw-r--r--pkgs/applications/virtualization/lima/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/applications/virtualization/lima/default.nix b/pkgs/applications/virtualization/lima/default.nix
index 03d049477b5d..129927acedc8 100644
--- a/pkgs/applications/virtualization/lima/default.nix
+++ b/pkgs/applications/virtualization/lima/default.nix
@@ -1,31 +1,39 @@
{ lib
+, stdenv
, buildGoModule
, fetchFromGitHub
, installShellFiles
, qemu
+, xcbuild
+, sigtool
, makeWrapper
}:
buildGoModule rec {
pname = "lima";
- version = "0.13.0";
+ version = "0.14.1";
src = fetchFromGitHub {
owner = "lima-vm";
repo = pname;
rev = "v${version}";
- sha256 = "sha256-alE7fUVxJRkLMtdia5ruHxh9nlWIubM0J6iIrmpreRM=";
+ sha256 = "sha256-C1qJ3SAxtFSxbGrDlLvYDzUwdiJDcegzx5uXCSYNVJQ=";
};
- vendorSha256 = "sha256-Kb2R8USWOWRFMjQO3tjdl5UHOzzb2B3ld+5vO2gF3KY=";
+ vendorSha256 = "sha256-MaAdX7TKfBzvzz8r+cfKCSul/QZ0/AgHnBwhu0ZR0gY=";
- 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:'
'';
+ # 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