Skip to content

Commit 4f4753e

Browse files
committed
libkrun: 1.9.8 -> 1.11.2
1 parent 6897042 commit 4f4753e

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

pkgs/by-name/li/libkrun/package.nix

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
stdenv.mkDerivation (finalAttrs: {
2424
pname = "libkrun";
25-
version = "1.9.8";
25+
version = "1.11.2";
2626

2727
src = fetchFromGitHub {
2828
owner = "containers";
2929
repo = "libkrun";
3030
tag = "v${finalAttrs.version}";
31-
hash = "sha256-a5ot5ad8boANK3achn6PJ52k/xmxawbTM0/hEEC/fss=";
31+
hash = "sha256-B11f7uG/oODwkME2rauCFbVysxUtUrUmd6RKeuBdnUU=";
3232
};
3333

3434
outputs = [
@@ -38,9 +38,19 @@ stdenv.mkDerivation (finalAttrs: {
3838

3939
cargoDeps = rustPlatform.fetchCargoVendor {
4040
inherit (finalAttrs) src;
41-
hash = "sha256-X1NPZQaXFBw9IKD2DbBCPug0WDjv8XnpefbA2RNJgFU=";
41+
hash = "sha256-bcHy8AfO9nzSZKoFlEpPKvwupt3eMb+A2rHDaUzO3/U=";
4242
};
4343

44+
# Make sure libkrunfw can be found by dlopen()
45+
# FIXME: This wasn't needed previously. What changed?
46+
env.RUSTFLAGS = toString (
47+
map (flag: "-C link-arg=" + flag) [
48+
"-Wl,--push-state,--no-as-needed"
49+
"-lkrunfw"
50+
"-Wl,--pop-state"
51+
]
52+
);
53+
4454
nativeBuildInputs = [
4555
rustPlatform.cargoSetupHook
4656
rustPlatform.bindgenHook

0 commit comments

Comments
 (0)