2022-06-01 18:49:09 +03:00
|
|
|
{ lib
|
2021-12-27 02:32:57 +03:00
|
|
|
, newScope
|
|
|
|
}:
|
2021-12-26 22:47:16 +03:00
|
|
|
|
2021-12-27 02:32:57 +03:00
|
|
|
lib.makeScope newScope (self:
|
2021-12-27 01:05:23 +03:00
|
|
|
let
|
2022-02-15 05:31:45 +03:00
|
|
|
inherit (self) callPackage;
|
2021-12-27 01:05:23 +03:00
|
|
|
in
|
2022-10-09 20:28:48 +03:00
|
|
|
{
|
2022-01-30 03:12:22 +03:00
|
|
|
appendCrateRegistries = input: self.overrideScope' (final: prev: {
|
|
|
|
crateRegistries = prev.crateRegistries // (lib.foldl (a: b: a // b) { } input);
|
|
|
|
});
|
|
|
|
|
2021-12-31 01:49:52 +03:00
|
|
|
buildDepsOnly = callPackage ./buildDepsOnly.nix { };
|
2022-01-04 01:22:08 +03:00
|
|
|
buildPackage = callPackage ./buildPackage.nix { };
|
2022-07-30 18:52:07 +03:00
|
|
|
cargoAudit = callPackage ./cargoAudit.nix { };
|
2022-01-05 01:18:29 +03:00
|
|
|
cargoBuild = callPackage ./cargoBuild.nix { };
|
2022-01-04 23:07:04 +03:00
|
|
|
cargoClippy = callPackage ./cargoClippy.nix { };
|
2022-09-20 04:05:43 +03:00
|
|
|
cargoDoc = callPackage ./cargoDoc.nix { };
|
2022-01-17 04:49:39 +03:00
|
|
|
cargoFmt = callPackage ./cargoFmt.nix { };
|
2022-10-09 20:28:48 +03:00
|
|
|
cargoHelperFunctionsHook = callPackage ./setupHooks/cargoHelperFunctions.nix { };
|
2022-07-24 01:04:06 +03:00
|
|
|
cargoNextest = callPackage ./cargoNextest.nix { };
|
2022-01-17 05:16:21 +03:00
|
|
|
cargoTarpaulin = callPackage ./cargoTarpaulin.nix { };
|
2022-09-21 04:27:47 +03:00
|
|
|
cleanCargoSource = callPackage ./cleanCargoSource.nix { };
|
2021-12-30 03:03:39 +03:00
|
|
|
cleanCargoToml = callPackage ./cleanCargoToml.nix { };
|
2022-10-09 20:28:48 +03:00
|
|
|
configureCargoCommonVarsHook = callPackage ./setupHooks/configureCargoCommonVars.nix { };
|
|
|
|
configureCargoVendoredDepsHook = callPackage ./setupHooks/configureCargoVendoredDeps.nix { };
|
2021-12-31 01:46:35 +03:00
|
|
|
crateNameFromCargoToml = callPackage ./crateNameFromCargoToml.nix { };
|
2022-01-30 03:12:22 +03:00
|
|
|
|
|
|
|
crateRegistries = self.registryFromDownloadUrl {
|
|
|
|
dl = "https://crates.io/api/v1/crates";
|
|
|
|
indexUrl = "https://github.com/rust-lang/crates.io-index";
|
|
|
|
};
|
|
|
|
|
2021-12-27 01:05:23 +03:00
|
|
|
downloadCargoPackage = callPackage ./downloadCargoPackage.nix { };
|
2022-02-08 07:03:12 +03:00
|
|
|
downloadCargoPackageFromGit = callPackage ./downloadCargoPackageFromGit.nix { };
|
2022-09-21 04:27:47 +03:00
|
|
|
filterCargoSources = callPackage ./filterCargoSources.nix { };
|
2022-10-09 20:28:48 +03:00
|
|
|
findCargoFiles = callPackage ./findCargoFiles.nix { };
|
|
|
|
inheritCargoArtifactsHook = callPackage ./setupHooks/inheritCargoArtifacts.nix { };
|
|
|
|
installCargoArtifactsHook = callPackage ./setupHooks/installCargoArtifacts.nix { };
|
|
|
|
installFromCargoBuildLogHook = callPackage ./setupHooks/installFromCargoBuildLog.nix { };
|
2022-01-03 01:48:32 +03:00
|
|
|
mkCargoDerivation = callPackage ./mkCargoDerivation.nix { };
|
2021-12-31 00:22:05 +03:00
|
|
|
mkDummySrc = callPackage ./mkDummySrc.nix { };
|
2022-06-26 21:25:40 +03:00
|
|
|
|
|
|
|
overrideToolchain = toolchain: self.overrideScope' (final: prev: {
|
|
|
|
cargo = toolchain;
|
|
|
|
clippy = toolchain;
|
|
|
|
rustc = toolchain;
|
|
|
|
rustfmt = toolchain;
|
|
|
|
});
|
|
|
|
|
2022-01-30 03:12:22 +03:00
|
|
|
registryFromDownloadUrl = callPackage ./registryFromDownloadUrl.nix { };
|
|
|
|
registryFromGitIndex = callPackage ./registryFromGitIndex.nix { };
|
2022-10-09 20:28:48 +03:00
|
|
|
removeReferencesToVendoredSourcesHook = callPackage ./setupHooks/removeReferencesToVendoredSources.nix { };
|
2021-12-27 01:05:23 +03:00
|
|
|
urlForCargoPackage = callPackage ./urlForCargoPackage.nix { };
|
|
|
|
vendorCargoDeps = callPackage ./vendorCargoDeps.nix { };
|
2022-02-07 04:16:49 +03:00
|
|
|
vendorCargoRegistries = callPackage ./vendorCargoRegistries.nix { };
|
2022-02-08 07:03:12 +03:00
|
|
|
vendorGitDeps = callPackage ./vendorGitDeps.nix { };
|
2021-12-30 06:26:55 +03:00
|
|
|
writeTOML = callPackage ./writeTOML.nix { };
|
2021-12-27 01:05:23 +03:00
|
|
|
})
|