chore(tvix/nar): add CI build target

Change-Id: Ic73a391da9a733cade26114ab1127907c8d62a57
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7598
Reviewed-by: flokli <flokli@flokli.de>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2022-12-20 19:23:07 +03:00 committed by tazjin
parent f467df06dc
commit a95dea719f
6 changed files with 33 additions and 8 deletions

4
tvix/Cargo.lock generated
View file

@ -1532,6 +1532,10 @@ dependencies = [
"tvix-eval",
]
[[package]]
name = "tvix-nar"
version = "0.0.0"
[[package]]
name = "tvix-store"
version = "0.1.0"

View file

@ -73,6 +73,16 @@ rec {
# File a bug if you depend on any for non-debug work!
debug = internal.debugCrate { inherit packageId; };
};
"tvix-nar" = rec {
packageId = "tvix-nar";
build = internal.buildRustCrateWithFeatures {
packageId = "tvix-nar";
};
# Debug support which might change between releases.
# File a bug if you depend on any for non-debug work!
debug = internal.debugCrate { inherit packageId; };
};
"tvix-store" = rec {
packageId = "tvix-store";
build = internal.buildRustCrateWithFeatures {
@ -4373,6 +4383,18 @@ rec {
}
];
};
"tvix-nar" = rec {
crateName = "tvix-nar";
version = "0.0.0";
edition = "2021";
# We can't filter paths with references in Nix 2.4
# See https://github.com/NixOS/nix/issues/5410
src =
if (lib.versionOlder builtins.nixVersion "2.4pre20211007")
then lib.cleanSourceWith { filter = sourceFilter; src = ./nar; }
else ./nar;
};
"tvix-store" = rec {
crateName = "tvix-store";

View file

@ -21,6 +21,7 @@ members = [
"cli",
"eval",
"eval/builtin-macros",
"nar",
"nix_cli",
"store",
]

7
tvix/nar/Cargo.lock generated
View file

@ -1,7 +0,0 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "tvix_nar"
version = "0.0.0"

View file

@ -1,4 +1,4 @@
[package]
name = "tvix_nar"
name = "tvix-nar"
version = "0.0.0"
edition = "2021"

5
tvix/nar/default.nix Normal file
View file

@ -0,0 +1,5 @@
{ depot, ... }:
depot.tvix.crates.workspaceMembers.tvix-nar.build.override {
runTests = true;
}