File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323stdenv . 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
You can’t perform that action at this time.
0 commit comments