Skip to content

Commit 0677671

Browse files
committed
REBASEME: Try to fix Hydra build
1 parent b765e6e commit 0677671

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

flake.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@
4646
# target the same way nixpkgs does for isStatic platforms.
4747
static-liburing = final.liburing.overrideAttrs (old: {
4848
dontdisableStatic = true;
49+
# Workaround for macOS builders: recreate man page symlinks that may be lost
50+
# during source extraction when cross-compiling from Darwin to Linux
51+
postUnpack = (old.postUnpack or "") + ''
52+
if [ ! -L "$sourceRoot/man/IO_URING_CHECK_VERSION.3" ]; then
53+
ln -sf io_uring_check_version.3 "$sourceRoot/man/IO_URING_CHECK_VERSION.3"
54+
ln -sf io_uring_check_version.3 "$sourceRoot/man/IO_URING_VERSION_MAJOR.3"
55+
ln -sf io_uring_check_version.3 "$sourceRoot/man/IO_URING_VERSION_MINOR.3"
56+
ln -sf io_uring_major_version.3 "$sourceRoot/man/io_uring_major_version.3" 2>/dev/null || true
57+
ln -sf io_uring_minor_version.3 "$sourceRoot/man/io_uring_minor_version.3" 2>/dev/null || true
58+
fi
59+
'';
4960
postInstall = ''
5061
# Always builds both static and dynamic libraries, so we need to remove the
5162
# dynamic libraries.

0 commit comments

Comments
 (0)