chore(tvix/nix_cli): drop crate

The only thing this was doing was invoking nix-store --add, which is not
gonna help us populate the tvix-store at all (and we now have
`tvix-store import`).

This is also (rightfully) causing clippy warnings, because of some
fields being unused.

It's more of a skeleton, and rather than shelling out to Nix for some
usecases, we might introduce a "compatible" Nix CLI frontend for a
subset of commands.

Drop this for now, to decrease the noise and confusion.

Change-Id: I2fd399e9320260f08893b685561755af9c7c961c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10226
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Florian Klink 2023-12-09 13:14:16 +02:00 committed by clbot
parent 0907420600
commit f11c6d610c
7 changed files with 0 additions and 186 deletions

View file

@ -33,16 +33,6 @@ rec {
# You can override the features with
# workspaceMembers."${crateName}".build.override { features = [ "default" "feature1" ... ]; }.
workspaceMembers = {
"nix-cli" = rec {
packageId = "nix-cli";
build = internal.buildRustCrateWithFeatures {
packageId = "nix-cli";
};
# Debug support which might change between releases.
# File a bug if you depend on any for non-debug work!
debug = internal.debugCrate { inherit packageId; };
};
"nix-compat" = rec {
packageId = "nix-compat";
build = internal.buildRustCrateWithFeatures {
@ -4607,41 +4597,6 @@ rec {
};
resolvedDefaultFeatures = [ "feature" "fs" "user" ];
};
"nix-cli" = rec {
crateName = "nix-cli";
version = "0.1.0";
edition = "2021";
crateBin = [
{
name = "nix-cli";
path = "src/main.rs";
requiredFeatures = [ ];
}
{
name = "nix-store";
path = "src/bin/nix-store.rs";
requiredFeatures = [ ];
}
];
# 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") || (lib.versionOlder "2.5" builtins.nixVersion))
then lib.cleanSourceWith { filter = sourceFilter; src = ./nix_cli; }
else ./nix_cli;
dependencies = [
{
name = "clap";
packageId = "clap 4.2.7";
}
{
name = "tempfile";
packageId = "tempfile";
}
];
features = { };
resolvedDefaultFeatures = [ "integration_tests" ];
};
"nix-compat" = rec {
crateName = "nix-compat";
version = "0.1.0";