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

43 lines
801 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;
};
public = {
name = "ansible";
version = "2.7.1";
};
mkDerivation = {
preUnpack = ''
export src=$(ls ${config.mach-nix.pythonSources}/names/${config.public.name}/*);
'';
};
2023-02-17 09:09:39 +03:00
env = {
format = "setuptools";
2023-02-17 09:09:39 +03:00
pythonImportsCheck = [
config.public.name
];
};
2023-02-17 09:09:39 +03:00
mach-nix.pythonSources = config.deps.fetchPythonRequirements {
inherit python;
name = config.public.name;
requirementsList = ["${config.public.name}==${config.public.version}"];
2023-02-17 09:09:39 +03:00
hash = "sha256-Wdu4A9nFfVhHwj2rYrhb6A5xtZ2VytEc4F8Bo6kgFtg=";
maxDate = "2023-01-01";
};
}