2026-04-03 10:56:45 -04:00
|
|
|
{
|
|
|
|
|
self,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2025-09-24 14:33:20 +02:00
|
|
|
{
|
2025-10-21 19:17:55 +02:00
|
|
|
perSystem =
|
|
|
|
|
{
|
2026-04-13 15:40:51 +02:00
|
|
|
self',
|
2026-03-30 21:23:00 -04:00
|
|
|
pkgs,
|
2026-04-03 10:56:45 -04:00
|
|
|
craneLib,
|
2026-03-30 21:23:00 -04:00
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
{
|
2026-04-03 10:56:45 -04:00
|
|
|
packages = {
|
|
|
|
|
rocksdb = pkgs.callPackage ./rocksdb.nix { };
|
2026-04-20 14:56:09 +02:00
|
|
|
default = pkgs.callPackage ./continuwuity.nix {
|
|
|
|
|
inherit self craneLib;
|
2026-05-23 19:47:05 +02:00
|
|
|
inherit (self'.packages) rocksdb;
|
2026-04-20 14:56:09 +02:00
|
|
|
# extra features via `cargoExtraArgs`
|
|
|
|
|
cargoExtraArgs = "-F http3";
|
|
|
|
|
# extra RUSTFLAGS via `rustflags`
|
|
|
|
|
# the stuff below is required for http3
|
|
|
|
|
rustflags = "--cfg reqwest_unstable";
|
|
|
|
|
};
|
2026-04-13 15:40:51 +02:00
|
|
|
# users may also override this with other cargo profiles to build for other feature sets
|
2026-05-11 15:05:57 +02:00
|
|
|
# for features configuration see `default` package which enables http3 by default
|
|
|
|
|
|
|
|
|
|
# example: different compilation profile and different target_cpu
|
|
|
|
|
max-perf-haswell = self'.packages.default.override {
|
|
|
|
|
# compiles explicitly for haswell arch cpus
|
|
|
|
|
target_cpu = "haswell";
|
|
|
|
|
# compiles slower but with more thorough optimizations
|
2026-04-13 15:40:51 +02:00
|
|
|
profile = "release-max-perf";
|
|
|
|
|
};
|
2026-04-03 10:56:45 -04:00
|
|
|
};
|
2025-10-21 19:17:55 +02:00
|
|
|
};
|
2025-09-24 14:33:20 +02:00
|
|
|
}
|