forked from mirrors/nixpkgs
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{ lib, pythonPackages, fetchurl, libxslt, docbook5_xsl, openssh }:
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
name = "nixops-1.2";
|
|
namePrefix = "";
|
|
|
|
src = fetchurl {
|
|
url = "http://nixos.org/releases/nixops/${name}/${name}.tar.bz2";
|
|
sha256 = "06cf54c62a810cac5013d57d31707f0a6381b409485503a94a57ce6d8a1ac12b";
|
|
};
|
|
|
|
buildInputs = [ libxslt ];
|
|
|
|
pythonPath =
|
|
[ pythonPackages.prettytable
|
|
pythonPackages.boto
|
|
pythonPackages.sqlite3
|
|
pythonPackages.hetzner
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
postInstall =
|
|
''
|
|
# Backward compatibility symlink.
|
|
ln -s nixops $out/bin/charon
|
|
|
|
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
|
|
cp -av nix/* $out/share/nix/nixops
|
|
|
|
# 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"
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|