Skip to content

Commit cc83f67

Browse files
committed
musl: keep the static liuring.a file in postInstall
1 parent 6c408c2 commit cc83f67

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
@@ -106,6 +106,13 @@
106106
// final.cardanoLib
107107
// import ./nix/svclib.nix {inherit (final) pkgs;};
108108
})
109+
(final: prev: {
110+
# For musl builds, make sure the static `liburing.a` file is not deleted in `postInstall`
111+
# ex: https://github.com/NixOS/nixpkgs/blob/f84a9816b2d5f7caade4b2fab16a66486abb7038/pkgs/by-name/li/liburing/package.nix#L43-L45
112+
liburing = prev.liburing.overrideAttrs (attrs: final.lib.optionalAttrs final.stdenv.hostPlatform.isMusl {
113+
postInstall = builtins.replaceStrings [ "rm $out/lib/liburing*.a" ] [ "" ] attrs.postInstall;
114+
});
115+
})
109116
(import ./nix/pkgs.nix)
110117
self.overlay
111118
];

0 commit comments

Comments
 (0)