From 20a6dbc80bea9fbf9b16f094c46cd571c055ee04 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 2 Dec 2026 17:19:27 +0000 Subject: pkgs/rust: check plans kept in hrm against the package's source Only plans in ~/sync/src checkouts were checked, against the checkout. A plan in pkgs/rust//Cargo.json, used wherever there's no checkout, as on the hosts, wasn't checked at all: enstate's, older than its libc, passed and failed the build on ru. rustHrmCrateArgs has these packages' arguments as hrm has them, without what ~/sync/src overrides, for plans to check them, too. --- pkgs/rust/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'pkgs/rust/default.nix') diff --git a/pkgs/rust/default.nix b/pkgs/rust/default.nix index da387670..a557ccfd 100644 --- a/pkgs/rust/default.nix +++ b/pkgs/rust/default.nix @@ -75,7 +75,7 @@ in # }; # } rustCrateArgs = - lib.mapAttrs (pname: path: hrmPlan path // callArgs path) explicitPackages + self.rustHrmCrateArgs // lib.mapAttrs (pname: dir: let @@ -90,6 +90,17 @@ in ) automaticPackages; + # crate2nixPackage arguments for the packages in pkgs/rust as hrm has + # them, without what ~/sync/src overrides: with a plan kept next to the + # package, checked against the package's own source. + rustHrmCrateArgs = + lib.mapAttrs + (pname: path: let + args = hrmPlan path // callArgs path; + in + args // planChecks args.src) + explicitPackages; + # Copies a Cargo workspace into the store, leaving out what the build # doesn't need. cleanCargoSource = name: src: mylib.copyWithout { -- cgit v1.3.1