feat(nix): also add release-max-perf package build to flake outputs

This commit is contained in:
aviac
2026-04-20 17:49:03 +00:00
committed by Ellis Git
parent 6999246d19
commit 42028f155b
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -9,6 +9,7 @@
rustPlatform, rustPlatform,
cargoExtraArgs ? "", cargoExtraArgs ? "",
rocksdb ? callPackage ./rocksdb.nix { }, rocksdb ? callPackage ./rocksdb.nix { },
profile ? "release",
}: }:
let let
# see https://crane.dev/API.html#cranelibfiltercargosources # see https://crane.dev/API.html#cranelibfiltercargosources
@@ -35,6 +36,7 @@ let
env = { env = {
ROCKSDB_INCLUDE_DIR = "${rocksdb}/include"; ROCKSDB_INCLUDE_DIR = "${rocksdb}/include";
ROCKSDB_LIB_DIR = "${rocksdb}/lib"; ROCKSDB_LIB_DIR = "${rocksdb}/lib";
CARGO_PROFILE = profile;
}; };
}; };
in in
+9
View File
@@ -5,6 +5,7 @@
{ {
perSystem = perSystem =
{ {
self',
pkgs, pkgs,
craneLib, craneLib,
... ...
@@ -13,6 +14,14 @@
packages = { packages = {
rocksdb = pkgs.callPackage ./rocksdb.nix { }; rocksdb = pkgs.callPackage ./rocksdb.nix { };
default = pkgs.callPackage ./continuwuity.nix { inherit self craneLib; }; default = pkgs.callPackage ./continuwuity.nix { inherit self craneLib; };
# users may also override this with other cargo profiles to build for other feature sets
#
# other examples include:
#
# - release-high-perf
max-perf = self'.packages.default.override {
profile = "release-max-perf";
};
}; };
}; };
} }