summary refs log tree commit diff
path: root/pkgs/tools/system/ansible/default.nix
diff options
context:
space:
mode:
authorAllen Nelson <anelson@narrativescience.com>2015-10-20 13:20:05 -0500
committerAllen Nelson <anelson@narrativescience.com>2015-10-20 13:20:37 -0500
commit8b93c4103d6926c7e690ceb0b6667ee17a6ee4eb (patch)
tree2d6ef0b36b7342b3f21c1f09e037ef2306ce6a1a /pkgs/tools/system/ansible/default.nix
parentc0a963e3cc6bd9c049f6db198a6acf92ee795e4e (diff)
downloadnixlib-8b93c4103d6926c7e690ceb0b6667ee17a6ee4eb.tar
nixlib-8b93c4103d6926c7e690ceb0b6667ee17a6ee4eb.tar.gz
nixlib-8b93c4103d6926c7e690ceb0b6667ee17a6ee4eb.tar.bz2
nixlib-8b93c4103d6926c7e690ceb0b6667ee17a6ee4eb.tar.lz
nixlib-8b93c4103d6926c7e690ceb0b6667ee17a6ee4eb.tar.xz
nixlib-8b93c4103d6926c7e690ceb0b6667ee17a6ee4eb.tar.zst
nixlib-8b93c4103d6926c7e690ceb0b6667ee17a6ee4eb.zip
fix ansible constants.py patching, do not propagate pythonpaths
Diffstat (limited to 'pkgs/tools/system/ansible/default.nix')
-rw-r--r--pkgs/tools/system/ansible/default.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/tools/system/ansible/default.nix b/pkgs/tools/system/ansible/default.nix
index 0177eec9435e..c037450cc97b 100644
--- a/pkgs/tools/system/ansible/default.nix
+++ b/pkgs/tools/system/ansible/default.nix
@@ -11,7 +11,7 @@ pythonPackages.buildPythonPackage rec {
   };
 
   prePatch = ''
-    sed -i "s,\/usr\/share\/ansible\/,$out/share/ansible," lib/ansible/constants.py
+    sed -i "s,/usr/,$out," lib/ansible/constants.py
   '';
 
   doCheck = false;
@@ -19,14 +19,10 @@ pythonPackages.buildPythonPackage rec {
   dontPatchELF = true;
   dontPatchShebangs = true;
 
-  propagatedBuildInputs = with pythonPackages; [
+  pythonPath = with pythonPackages; [
     paramiko jinja2 pyyaml httplib2 boto six
   ] ++ stdenv.lib.optional windowsSupport pywinrm;
 
-  postFixup = ''
-      wrapPythonProgramsIn $out/bin "$out $pythonPath"
-  '';
-
   meta = with stdenv.lib; {
     homepage = "http://www.ansible.com";
     description = "A simple automation tool";