mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-25 22:13:34 +03:00
chore(ansible): make use of fetch-pip module
This commit is contained in:
parent
877c290f1e
commit
1e4e1cdaf5
@ -12,7 +12,8 @@ in {
|
|||||||
|
|
||||||
# use lock file to manage hash for fetchPip
|
# use lock file to manage hash for fetchPip
|
||||||
lock.fields.fetchPipHash =
|
lock.fields.fetchPipHash =
|
||||||
config.lock.lib.computeFODHash config.mach-nix.pythonSources;
|
config.lock.lib.computeFODHash
|
||||||
|
config.mach-nix.pythonSources;
|
||||||
|
|
||||||
deps = {nixpkgs, ...}: {
|
deps = {nixpkgs, ...}: {
|
||||||
python = nixpkgs.python39;
|
python = nixpkgs.python39;
|
||||||
@ -36,11 +37,13 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
mach-nix.pythonSources = config.deps.fetchPip {
|
mach-nix.pythonSources = {
|
||||||
inherit python;
|
imports = [../../drv-parts/fetch-pip];
|
||||||
name = config.name;
|
deps.python = config.deps.python;
|
||||||
|
fetch-pip = {
|
||||||
|
maxDate = "2023-01-01";
|
||||||
requirementsList = ["${config.name}==${config.version}"];
|
requirementsList = ["${config.name}==${config.version}"];
|
||||||
hash = config.lock.content.fetchPipHash;
|
hash = config.lock.content.fetchPipHash;
|
||||||
maxDate = "2023-01-01";
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user