dream2nix/v1/nix/modules/drvs/ansible/default.nix

36 lines
717 B
Nix
Raw Normal View History

2023-02-17 09:09:39 +03:00
{config, lib, ...}: let
l = lib // builtins;
python = config.deps.python;
in {
imports = [
../../drv-parts/mach-nix-xs
];
deps = {nixpkgs, ...}: {
python = nixpkgs.python39;
};
pname = "ansible";
version = "2.7.1";
env.format = "setuptools";
env.pythonImportsCheck = [
config.pname
];
preUnpack = ''
export src=$(ls ${config.mach-nix.pythonSources}/names/${config.pname}/*);
2023-02-17 09:09:39 +03:00
'';
mach-nix.pythonSources = config.deps.fetchPythonRequirements {
2023-02-17 09:09:39 +03:00
inherit (config.deps) python;
name = config.pname;
requirementsList = ["${config.pname}==${config.version}"];
hash = "sha256-Wdu4A9nFfVhHwj2rYrhb6A5xtZ2VytEc4F8Bo6kgFtg=";
maxDate = "2023-01-01";
};
}