nixpkgs/pkgs/tools/package-management/nixops/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2013-09-09 12:03:39 +01:00
{ lib, pythonPackages, fetchurl, libxslt, docbook5_xsl, openssh }:
2013-06-25 12:21:35 +01:00
pythonPackages.buildPythonPackage rec {
name = "nixops-1.3";
2013-06-25 12:21:35 +01:00
namePrefix = "";
src = fetchurl {
url = "http://nixos.org/releases/nixops/${name}/${name}.tar.bz2";
sha256 = "d80b0fe3bb31bb84a8545f9ea804ec8137172c8df44f03326ed7639e5a4bad55";
2013-06-25 12:21:35 +01:00
};
buildInputs = [ libxslt ];
2013-06-25 12:21:35 +01:00
pythonPath =
2013-06-25 12:21:35 +01:00
[ pythonPackages.prettytable
pythonPackages.boto
pythonPackages.sqlite3
pythonPackages.hetzner
pythonPackages.libcloud
2013-06-25 12:21:35 +01:00
];
doCheck = false;
postInstall =
''
make -C doc/manual install nixops.1 docbookxsl=${docbook5_xsl}/xml/xsl/docbook \
docdir=$out/share/doc/nixops mandir=$out/share/man
mkdir -p $out/share/nix/nixops
2015-07-23 18:47:43 +01:00
cp -av "nix/"* $out/share/nix/nixops
2013-09-09 12:03:39 +01:00
# Add openssh to nixops' PATH. On some platforms, e.g. CentOS and RHEL
# the version of openssh is causing errors when have big networks (40+)
wrapProgram $out/bin/nixops --prefix PATH : "${openssh}/bin"
2013-06-25 12:21:35 +01:00
'';
meta = {
homepage = https://github.com/NixOS/nixops;
description = "NixOS cloud provisioning and deployment tool";
maintainers = [ lib.maintainers.eelco lib.maintainers.rob ];
platforms = lib.platforms.unix;
2013-06-25 12:21:35 +01:00
};
}