summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-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 {