diff --git a/nix/packages/continuwuity.nix b/nix/packages/continuwuity.nix index e5cf07c2c..7dc9e9e21 100644 --- a/nix/packages/continuwuity.nix +++ b/nix/packages/continuwuity.nix @@ -8,6 +8,7 @@ callPackage, rustPlatform, cargoExtraArgs ? "", + rustflags ? "", rocksdb ? callPackage ./rocksdb.nix { }, profile ? "release", }: @@ -37,6 +38,7 @@ let ROCKSDB_INCLUDE_DIR = "${rocksdb}/include"; ROCKSDB_LIB_DIR = "${rocksdb}/lib"; CARGO_PROFILE = profile; + RUSTFLAGS = rustflags; }; }; in diff --git a/nix/packages/default.nix b/nix/packages/default.nix index 28fe87495..6052f3649 100644 --- a/nix/packages/default.nix +++ b/nix/packages/default.nix @@ -13,7 +13,14 @@ { packages = { rocksdb = pkgs.callPackage ./rocksdb.nix { }; - default = pkgs.callPackage ./continuwuity.nix { inherit self craneLib; }; + default = pkgs.callPackage ./continuwuity.nix { + inherit self craneLib; + # extra features via `cargoExtraArgs` + cargoExtraArgs = "-F http3"; + # extra RUSTFLAGS via `rustflags` + # the stuff below is required for http3 + rustflags = "--cfg reqwest_unstable"; + }; # users may also override this with other cargo profiles to build for other feature sets # # other examples include: