From 07bc61d8d4e9ef6fa13f7025c59aaa091867c97f Mon Sep 17 00:00:00 2001 From: Niclas Overby Date: Sat, 22 Aug 2026 20:31:38 +0200 Subject: [PATCH] chore(flake): Stop restating the name each crate's Cargo.toml holds Every generated flake set `rust.pname`, and in 32 of 39 cases it restated the `[package].name` in the Cargo.toml beside it. nix-workspace now derives the name from that manifest, so the generator emits `pname` only for the seven virtual Cargo workspaces that have no [package] to take one from: fe-c, tangled-cli, tangled-spindle-nix-engine, nushell-plugin-tramp, oxidized-llvm, oxidized-pkg-config and oxidized-systemd. Nineteen crates said nothing else about their build, so their whole `rust` block goes with it. All 139 aarch64-linux and 41 aarch64-darwin drvPaths are unchanged, and each published flake still yields packages.. Signed-off-by: Niclas Overby --- flake.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 4fa0e6c..06c6db1 100644 --- a/flake.nix +++ b/flake.nix @@ -20,13 +20,10 @@ outputs = inputs: inputs.workspace { inherit inputs; - rust = { - pname = "oxidized-diffutils"; - aliases = { - "cmp" = "diff"; - "sdiff" = "diff"; - "diff3" = "diff"; - }; + rust.aliases = { + "cmp" = "diff"; + "sdiff" = "diff"; + "diff3" = "diff"; }; }; } -- 2.51.2