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

46 lines
1.3 KiB
Nix
Raw Normal View History

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 {
2013-10-08 16:21:15 +02:00
name = "nixops-1.1.1";
2013-06-25 13:21:35 +02:00
namePrefix = "";
src = fetchurl {
url = "http://nixos.org/releases/nixops/${name}/${name}.tar.bz2";
2013-10-08 16:21:15 +02:00
sha256 = "0hb77cf9l8qcjp6a1gzkzv7k10j5zvp23ilxgx5x6j93602d5jwb";
2013-06-25 13:21:35 +02:00
};
buildInputs = [ libxslt ];
pythonPath =
[ pythonPackages.prettytable
pythonPackages.boto
pythonPackages.sqlite3
2013-09-09 13:03:39 +02:00
pythonPackages.hetzner
2013-06-25 13:21:35 +02:00
];
doCheck = false;
postInstall =
''
2013-07-10 17:45:51 +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
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 ];
platforms = lib.platforms.linux;
};
}