chore(ansible): make use of fetch-pip module

This commit is contained in:
DavHau 2023-03-23 14:31:22 +08:00
parent 877c290f1e
commit 1e4e1cdaf5

View File

@ -12,7 +12,8 @@ in {
# use lock file to manage hash for fetchPip
lock.fields.fetchPipHash =
config.lock.lib.computeFODHash config.mach-nix.pythonSources;
config.lock.lib.computeFODHash
config.mach-nix.pythonSources;
deps = {nixpkgs, ...}: {
python = nixpkgs.python39;
@ -36,11 +37,13 @@ in {
];
};
mach-nix.pythonSources = config.deps.fetchPip {
inherit python;
name = config.name;
mach-nix.pythonSources = {
imports = [../../drv-parts/fetch-pip];
deps.python = config.deps.python;
fetch-pip = {
maxDate = "2023-01-01";
requirementsList = ["${config.name}==${config.version}"];
hash = config.lock.content.fetchPipHash;
maxDate = "2023-01-01";
};
};
}