forked from mirrors/nixpkgs
64 lines
1.8 KiB
Nix
64 lines
1.8 KiB
Nix
{ lib, pythonPackages, fetchgit, libxslt, docbook5_xsl, openssh }:
|
|
|
|
let
|
|
|
|
# Use this until the patches are upstreamed.
|
|
# Warning: will be rebased at will
|
|
libcloud = lib.overrideDerivation pythonPackages.libcloud ( args: {
|
|
src = fetchgit {
|
|
url = https://github.com/Phreedom/libcloud.git;
|
|
rev = "784427f549829a00d551e3468184a708420ad1ec";
|
|
sha256 = "fd0e092b39fa1fde6a8847e6dc69855d30c2dad9e95ee0373297658ff53edf8a";
|
|
};
|
|
|
|
preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py";
|
|
});
|
|
|
|
in
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
name = "nixops-1.3pre1486_7489764";
|
|
namePrefix = "";
|
|
|
|
src = fetchgit {
|
|
url = https://github.com/NixOS/nixops;
|
|
rev = "7489764a2cc59d29b66b2cf5eea83b467affd982";
|
|
sha256 = "1qahqaj6536mnbz6xjj559j3zvsf2cwzhv7jmxcbib6ycxk2v7r0";
|
|
};
|
|
|
|
buildInputs = [ pythonPackages.nose pythonPackages.coverage ];
|
|
|
|
propagatedBuildInputs =
|
|
[ pythonPackages.prettytable
|
|
pythonPackages.boto
|
|
pythonPackages.hetzner
|
|
libcloud
|
|
pythonPackages.sqlite3
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
postInstall =
|
|
''
|
|
# Backward compatibility symlink.
|
|
ln -s nixops $out/bin/charon
|
|
|
|
make -C doc/manual install \
|
|
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.tv ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|