lima: mark as insecure if older than version 2.x (#486606)

This commit is contained in:
Philip Taron 2026-03-06 17:06:19 +00:00 committed by GitHub
commit 4e751f23a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 14 deletions

View file

@ -7,12 +7,15 @@
findutils,
}:
let
source = callPackage ./source.nix { };
in
buildGoModule (finalAttrs: {
pname = "lima-additional-guestagents";
# Because agents must use the same version as lima, lima's updateScript should also update the shared src.
# nixpkgs-update: no auto update
inherit (callPackage ./source.nix { }) version src vendorHash;
inherit (source) version src vendorHash;
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_15
@ -56,8 +59,7 @@ buildGoModule (finalAttrs: {
runHook postInstallCheck
'';
meta = {
homepage = "https://github.com/lima-vm/lima";
meta = source.meta // {
description = "Lima Guest Agents for emulating non-native architectures";
longDescription = ''
This package should only be used when your guest's architecture differs from the host's.
@ -71,8 +73,5 @@ buildGoModule (finalAttrs: {
Typically, you won't need to directly add this package to your *.nix files.
'';
changelog = "https://github.com/lima-vm/lima/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = [ ];
};
})

View file

@ -20,10 +20,13 @@
jq,
}:
let
source = callPackage ./source.nix { };
in
buildGoModule (finalAttrs: {
pname = "lima";
inherit (callPackage ./source.nix { }) version src vendorHash;
inherit (source) version src vendorHash;
nativeBuildInputs = [
makeWrapper
@ -158,13 +161,7 @@ buildGoModule (finalAttrs: {
};
};
meta = {
homepage = "https://github.com/lima-vm/lima";
meta = source.meta // {
description = "Linux virtual machines with automatic file sharing and port forwarding";
changelog = "https://github.com/lima-vm/lima/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
anhduy
];
};
})

View file

@ -1,4 +1,5 @@
{
lib,
fetchFromGitHub,
}:
@ -16,4 +17,14 @@ in
};
vendorHash = "sha256-SeLYVQI+ZIbR9qVaNyF89VUvXdfv1M5iM+Cbas6e2E0=";
meta = {
homepage = "https://github.com/lima-vm/lima";
changelog = "https://github.com/lima-vm/lima/releases/tag/v${version}";
knownVulnerabilities = lib.optional (lib.versionOlder version "2") "Lima version ${version} is EOL. See https://lima-vm.io/docs/releases/.";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
anhduy
];
};
}