-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
37 lines (31 loc) · 818 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ pkgs ? import (fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz) {} }:
let
molecule = pkgs.python39Packages.buildPythonPackage rec {
pname = "molecule";
version = "3.5.2";
src = pkgs.python39Packages.fetchPypi {
inherit pname version;
sha256 = "yCrwmeXAmY1+sWo79l7VpO3Zfjgk+5OM4BvwZKRs4Mo=";
};
propagatedBuildInputs = with pkgs.python39Packages; [
ansible
ansible-core
ansible-lint
gevent
geoip2
setuptools
setuptools-scm
libselinux
pyyaml
click-help-colors
pkgs.selinux-python
];
doCheck = false;
};
ansiblePython = pkgs.python39.buildEnv.override {
extraLibs = [ molecule ];
};
in
pkgs.mkShell {
buildInputs = [ ansiblePython ];
}