We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2876645 commit 6888dc0Copy full SHA for 6888dc0
nix/public-flake-module.nix
@@ -334,10 +334,10 @@ ourArgs:
334
in builtins.dirOf (builtins.unsafeDiscardStringContext
335
(lib.concatStringsSep "/" inRepoFileSplit));
336
337
- cargoNixDirs = lib.map getCargoNixDir
338
- ([ cfg.cargoNix.path ] ++
339
- (lib.mapAttrsToList (_: v: v.cargoNix.path) cfg.extraBuilds));
340
-
+ cargoNixDirs = lib.unique (lib.map getCargoNixDir
+ ((lib.optionals (cfg.cargoNix ? path) [ cfg.cargoNix.path ]) ++
+ (lib.mapAttrsToList (_: v: v.cargoNix.path) cfg.extraBuilds)));
+
341
in {
342
options.crate2nix = lib.mkOption {
343
type = types.submoduleWith {
0 commit comments