fix: devshell on darwin

Co-authored-by: thetayloredman <nutdriver716@gmail.com>
This commit is contained in:
Henry-Hiles
2026-04-08 10:35:22 -04:00
committed by Ellis Git
parent 09bfe79a44
commit a818f51396
3 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
dotenv_if_exists
if [ -f /etc/os-release ] && grep -q '^ID=nixos' /etc/os-release; then
if command -v nix >/dev/null 2>&1; then
use flake ".#${DIRENV_DEVSHELL:-default}"
fi
+2
View File
@@ -38,6 +38,8 @@
systems = [
"x86_64-linux"
"aarch64-linux"
# support untested but theoretically there
"aarch64-darwin"
];
};
}
+13 -5
View File
@@ -12,19 +12,27 @@
devShells.default = craneLib.devShell {
packages = [
self'.packages.rocksdb
pkgs.rust-jemalloc-sys-unprefixed
pkgs.nodejs
pkgs.liburing
pkgs.pkg-config
]
++ lib.optionals pkgs.stdenv.isLinux [
pkgs.liburing
pkgs.rust-jemalloc-sys-unprefixed
];
env = {
LIBCLANG_PATH = lib.makeLibraryPath [ pkgs.llvmPackages.libclang.lib ];
LD_LIBRARY_PATH = lib.makeLibraryPath [
LD_LIBRARY_PATH = lib.makeLibraryPath (
[
pkgs.stdenv.cc.cc.lib
]
++ lib.optionals pkgs.stdenv.isLinux [
pkgs.liburing
pkgs.jemalloc
pkgs.stdenv.cc.cc.lib
];
]
);
}
// lib.optionalAttrs pkgs.stdenv.isLinux {
PKG_CONFIG_PATH = lib.makeSearchPath "lib/pkgconfig" [
pkgs.liburing.dev
];