Add (optional, but opted in by default) support for Windows in ansible

This commit is contained in:
Dario Bertini
2015-06-15 19:24:02 +01:00
parent f1d465f429
commit 99912bbf0e
2 changed files with 31 additions and 2 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pythonPackages, python }:
{ windowsSupport ? true, stdenv, fetchurl, pythonPackages, python }:
pythonPackages.buildPythonPackage rec {
version = "1.9.1";
@@ -21,7 +21,7 @@ pythonPackages.buildPythonPackage rec {
propagatedBuildInputs = with pythonPackages; [
paramiko jinja2 pyyaml httplib2 boto six
];
] ++ stdenv.lib.optional windowsSupport pywinrm;
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"