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
|
||||
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;
|
||||
requirementsList = ["${config.name}==${config.version}"];
|
||||
hash = config.lock.content.fetchPipHash;
|
||||
maxDate = "2023-01-01";
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user