libkrun: 1.15.1 -> 1.17.0 (#485411)

This commit is contained in:
Nick Cao
2026-01-30 23:23:40 +00:00
committed by GitHub
2 changed files with 16 additions and 8 deletions
+5 -3
View File
@@ -17,6 +17,7 @@
withNet ? false,
withGpu ? false,
withSound ? false,
withInput ? false,
withTimesync ? false,
variant ? null,
}:
@@ -32,13 +33,13 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "libkrun" + lib.optionalString (variant != null) "-${variant}";
version = "1.15.1";
version = "1.17.0";
src = fetchFromGitHub {
owner = "containers";
repo = "libkrun";
tag = "v${finalAttrs.version}";
hash = "sha256-VhlFyYJ/TH12I3dUq0JTus60rQEJq5H4Pm1puCnJV5A=";
hash = "sha256-6HBSL5Zu29sDoEbZeQ6AsNIXUcqXVVGMk0AR2X6v1yU=";
};
outputs = [
@@ -48,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: {
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) src;
hash = "sha256-dK3V7HCCvTqmQhB5Op2zmBPa9FO3h9gednU9tpQk+1U=";
hash = "sha256-UIzbtBJH6aivoIxko1Wxdod/jUN44pERX9Hd+v7TC3Q=";
};
# Make sure libkrunfw can be found by dlopen()
@@ -88,6 +89,7 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional withNet "NET=1"
++ lib.optional withGpu "GPU=1"
++ lib.optional withSound "SND=1"
++ lib.optional withInput "INPUT=1"
++ lib.optional withTimesync "TIMESYNC=1"
++ lib.optional (variant == "sev") "SEV=1"
++ lib.optional (variant == "tdx") "TDX=1";
+11 -5
View File
@@ -21,18 +21,18 @@ assert lib.elem variant [
stdenv.mkDerivation (finalAttrs: {
pname = "libkrunfw" + lib.optionalString (variant != null) "-${variant}";
version = "4.10.0";
version = "5.1.0";
src = fetchFromGitHub {
owner = "containers";
repo = "libkrunfw";
tag = "v${finalAttrs.version}";
hash = "sha256-mq2gw0+xL6qUZE/fk0vLT3PEpzPV8p+iwRFJHXVOMnk=";
hash = "sha256-x9HQP+EqCteoCq2Sl/TQcfdzQC5iuE4gaSKe7tN5dAA=";
};
kernelSrc = fetchurl {
url = "mirror://kernel/linux/kernel/v6.x/linux-6.12.34.tar.xz";
hash = "sha256-p/P+OB9n7KQXLptj77YaFL1/nhJ44DYD0P9ak/Jwwk0=";
url = "mirror://kernel/linux/kernel/v6.x/linux-6.12.62.tar.xz";
hash = "sha256-E+LGhayPq13Zkt0QVzJVTa5RSu81DCqMdBjnt062LBM=";
};
postPatch = ''
@@ -81,6 +81,12 @@ stdenv.mkDerivation (finalAttrs: {
RossComputerGuy
nrabulinski
];
platforms = [ "x86_64-linux" ] ++ lib.optionals (variant == null) [ "aarch64-linux" ];
platforms = [
"x86_64-linux"
]
++ lib.optionals (variant == null) [
"aarch64-linux"
"riscv64-linux"
];
};
})