Make rocksdb include liburing, and tell gcc the path during the build

With: strings /nix/store/9skicdac6xs4yww1nd3h7m6xydv4hxlj-rocksdb-9.1.1/lib/librocksdb.so.9|rg io_uring|wc -l
112
With: strings result/bin/conduit |rg io_uring|wc -l
5

Without: strings static-x86_64-unknown-linux-musl-jemalloc |rg io_uring | wc -l
0

Signed-off-by: morguldir <morguldir@protonmail.com>
This commit is contained in:
morguldir 2024-05-06 20:59:59 +02:00 committed by June 🍓🦴
parent 1d57e14dc0
commit 70047ff26d
3 changed files with 39 additions and 1 deletions

View file

@ -10,6 +10,7 @@
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
# https://github.com/girlbossceo/rocksdb/commit/db6df0b185774778457dabfcbd822cb81760cade
rocksdb = { url = "github:girlbossceo/rocksdb?ref=v9.1.1"; flake = false; };
liburing = { url = "github:axboe/liburing?ref=master"; flake = false; };
};
outputs = inputs:
@ -41,6 +42,12 @@
(builtins.fromJSON (builtins.readFile ./flake.lock))
.nodes.rocksdb.original.ref;
});
# liburing's configure file is handwritten so the default assumptions don't apply
liburing = pkgs.liburing.overrideAttrs {
dontAddStaticConfigureFlags = true;
dontDisableStatic = true;
configureFlags = [];
};
});
scopeHost = mkScope pkgsHost;