Files
continuwuity/nix/packages/rocksdb.nix
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.3 KiB
Nix
Raw Normal View History

2025-09-24 14:33:20 +02:00
{
2026-05-24 12:16:19 -04:00
# stdenv,
# enableJemalloc ? stdenv.hostPlatform.isLinux,
enableJemalloc ? false,
2025-09-24 14:33:20 +02:00
rocksdb,
fetchFromGitea,
2026-03-30 20:44:14 -04:00
rust-jemalloc-sys-unprefixed,
2025-09-24 14:33:20 +02:00
...
}:
(rocksdb.override {
# rocksdb fails to build with prefixed jemalloc, which is required on
# darwin due to [1]. In this case, fall back to building rocksdb with
# libc malloc. This should not cause conflicts, because all of the
# jemalloc symbols are prefixed.
#
# [1]: https://github.com/tikv/jemallocator/blob/ab0676d77e81268cd09b059260c75b38dbef2d51/jemalloc-sys/src/env.rs#L17
2026-03-30 20:44:14 -04:00
jemalloc = rust-jemalloc-sys-unprefixed;
2026-05-24 12:16:19 -04:00
inherit enableJemalloc;
2025-09-24 14:33:20 +02:00
}).overrideAttrs
2026-03-31 15:41:23 -04:00
({
2026-05-19 19:42:59 +00:00
version = "continuwuity-v0.5.0-unstable-2026-05-19";
2025-09-24 14:33:20 +02:00
src = fetchFromGitea {
domain = "forgejo.ellis.link";
owner = "continuwuation";
repo = "rocksdb";
2026-05-19 19:42:59 +00:00
rev = "3756b2b905e13216d8b56bcc783d814e7b073aff";
hash = "sha256-rSv4fr2bf9JJwdodgeuPCuceeh7k97KVxrAOC0wyPQY=";
2025-09-24 14:33:20 +02:00
};
# We have this already at https://forgejo.ellis.link/continuwuation/rocksdb/commit/a935c0273e1ba44eacf88ce3685a9b9831486155
# Unsetting `patches` so we don't have to revert it and make this nix exclusive
patches = [ ];
# Unset postPatch, as our version override breaks version-specific sed calls in the original package
postPatch = "";
2025-09-24 14:33:20 +02:00
})