Skip to content

Commit f5e82de

Browse files
johnalotoskigeo2a
authored andcommitted
musl: keep the static liuring.a file in postInstall
1 parent 536aa64 commit f5e82de

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@
113113
// final.cardanoLib
114114
// import ./nix/svclib.nix {inherit (final) pkgs;};
115115
})
116+
(final: prev: {
117+
# For musl builds, make sure the static `liburing.a` file is not deleted in `postInstall`
118+
# ex: https://github.com/NixOS/nixpkgs/blob/f84a9816b2d5f7caade4b2fab16a66486abb7038/pkgs/by-name/li/liburing/package.nix#L43-L45
119+
liburing = prev.liburing.overrideAttrs (attrs: final.lib.optionalAttrs final.stdenv.hostPlatform.isMusl {
120+
postInstall = builtins.replaceStrings [ "rm $out/lib/liburing*.a" ] [ "" ] attrs.postInstall;
121+
});
122+
})
116123
(import ./nix/pkgs.nix)
117124
abseilOverlay
118125
self.overlay

0 commit comments

Comments
 (0)