Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
iElectric = "Domen Kozar <domen@dev.si>";
iyzsong = "Song Wenwu <iyzsong@gmail.com>";
jcumming = "Jack Cummings <jack@mudshark.org>";
joamaki = "Jussi Maki <joamaki@gmail.com>";
jwiegley = "John Wiegley <johnw@newartisans.com>";
kkallio = "Karn Kallio <tierpluspluslists@gmail.com>";
ktosiek = "Tomasz Kontusz <tomasz.kontusz@gmail.com>";
Expand Down Expand Up @@ -98,4 +99,5 @@
zef = "Zef Hemel <zef@zef.me>";
zimbatm = "zimbatm <zimbatm@zimbatm.com>";
zoomulator = "Kim Simmons <zoomulator@gmail.com>";

}
3 changes: 1 addition & 2 deletions pkgs/development/python-modules/generic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ python.stdenv.mkDerivation (attrs // {
runHook postInstall
'';

postFixup =
''
postFixup = attrs.postFixup or ''
wrapPythonPrograms

# If a user installs a Python package, they probably also wants its
Expand Down
37 changes: 37 additions & 0 deletions pkgs/tools/system/ansible/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ stdenv, fetchurl, pythonPackages, python }:

pythonPackages.buildPythonPackage rec {
version = "1.6.1";
name = "ansible-${version}";
namePrefix = "";

src = fetchurl {
url = "https://github.com/ansible/ansible/archive/v${version}.tar.gz";
sha256 = "1iz1q2h0zll4qsxk0pndc59knasw663kv53sm21q57qz7lf30q9z";
};

prePatch = ''
sed -i "s,\/usr\/share\/ansible\/,$out/share/ansible," lib/ansible/constants.py
'';

doCheck = false;
dontStrip = true;
dontPatchELF = true;
dontPatchShebangs = true;

propagatedBuildInputs = with pythonPackages; [
paramiko jinja2 pyyaml httplib2 boto
];

postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';

meta = with stdenv.lib; {
homepage = "http://www.ansible.com";
description = "A simple automation tool";
license = licenses.gpl3;
maintainers = [ maintainers.joamaki ];
platforms = platforms.linux; # Only tested on Linux
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3655,6 +3655,8 @@ let

### DEVELOPMENT / TOOLS

ansible = callPackage ../tools/system/ansible { };

antlr = callPackage ../development/tools/parsing/antlr/2.7.7.nix { };

antlr3 = callPackage ../development/tools/parsing/antlr { };
Expand Down