2013-09-09 13:03:39 +02:00
|
|
|
{ lib, pythonPackages, fetchurl, libxslt, docbook5_xsl, openssh }:
|
2013-06-25 13:21:35 +02:00
|
|
|
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
2015-09-28 13:41:10 +02:00
|
|
|
name = "nixops-1.2";
|
2013-06-25 13:21:35 +02:00
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nixos.org/releases/nixops/${name}/${name}.tar.bz2";
|
2015-09-28 13:41:10 +02:00
|
|
|
sha256 = "06cf54c62a810cac5013d57d31707f0a6381b409485503a94a57ce6d8a1ac12b";
|
2013-06-25 13:21:35 +02:00
|
|
|
};
|
|
|
|
|
2015-09-28 13:41:10 +02:00
|
|
|
buildInputs = [ libxslt ];
|
2013-06-25 13:21:35 +02:00
|
|
|
|
2015-09-28 13:41:10 +02:00
|
|
|
pythonPath =
|
2013-06-25 13:21:35 +02:00
|
|
|
[ pythonPackages.prettytable
|
|
|
|
pythonPackages.boto
|
2015-09-28 13:33:26 +02:00
|
|
|
pythonPackages.sqlite3
|
2015-09-28 13:41:10 +02:00
|
|
|
pythonPackages.hetzner
|
2013-06-25 13:21:35 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
2015-09-28 13:41:10 +02:00
|
|
|
# Backward compatibility symlink.
|
|
|
|
ln -s nixops $out/bin/charon
|
|
|
|
|
2013-06-25 13:21:35 +02:00
|
|
|
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 19:47:43 +02:00
|
|
|
cp -av "nix/"* $out/share/nix/nixops
|
2013-09-09 13:03:39 +02: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 13:21:35 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/NixOS/nixops;
|
|
|
|
description = "NixOS cloud provisioning and deployment tool";
|
|
|
|
maintainers = [ lib.maintainers.eelco lib.maintainers.rob ];
|
2013-10-28 19:44:36 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2013-06-25 13:21:35 +02:00
|
|
|
};
|
|
|
|
}
|