summaryrefslogtreecommitdiffstats
path: root/pkgs/rust/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-02 17:19:27 +0000
committertv <tv@krebsco.de>2026-12-02 18:02:30 +0000
commit20a6dbc80bea9fbf9b16f094c46cd571c055ee04 (patch)
tree92a3881fe6c27b0059fe037d5a945034c937c7b3 /pkgs/rust/default.nix
parent7865eec153b2e87f0d50c195ce9fac22b1f922f6 (diff)
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/<pname>/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.
Diffstat (limited to 'pkgs/rust/default.nix')
-rw-r--r--pkgs/rust/default.nix13
1 files changed, 12 insertions, 1 deletions
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 {