Skip to content

Commit 98baaa6

Browse files
committed
feat: make cargo overridable in appliedCargoNix
1 parent c62c032 commit 98baaa6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ rec {
3939
, additionalCargoNixArgs ? [ ]
4040
, additionalCrateHashes ? internal.parseOptHashesFile
4141
(src + "/crate-hashes.json")
42+
, cargo ? pkgs.cargo
4243
}:
4344
let
4445
crateDir = dirOf (src + "/${cargoToml}");
@@ -51,7 +52,7 @@ rec {
5152
stdenv.mkDerivation {
5253
name = "${name}-crate2nix";
5354

54-
buildInputs = [ pkgs.cargo pkgs.jq crate2nix ];
55+
buildInputs = [ cargo pkgs.jq crate2nix ];
5556
preferLocalBuild = true;
5657

5758
inherit src;

0 commit comments

Comments
 (0)