2016-10-19 17:46:31 +02:00
|
|
|
{ lib, python2Packages, fetchurl, libxslt, docbook5_xsl, openssh
|
2015-12-18 18:51:01 +01:00
|
|
|
# version args
|
|
|
|
, src, version
|
|
|
|
}:
|
|
|
|
|
2016-10-19 17:46:31 +02:00
|
|
|
python2Packages.buildPythonApplication {
|
2015-12-18 18:51:01 +01:00
|
|
|
name = "nixops-${version}";
|
2017-05-18 11:40:27 +02:00
|
|
|
inherit version src;
|
2015-12-18 18:51:01 +01:00
|
|
|
|
|
|
|
buildInputs = [ libxslt ];
|
|
|
|
|
2016-10-19 17:46:31 +02:00
|
|
|
pythonPath = with python2Packages;
|
|
|
|
[ prettytable
|
|
|
|
boto
|
2016-11-23 17:35:20 +01:00
|
|
|
boto3
|
2016-10-19 17:46:31 +02:00
|
|
|
hetzner
|
|
|
|
libcloud
|
|
|
|
azure-storage
|
|
|
|
azure-mgmt-compute
|
|
|
|
azure-mgmt-network
|
|
|
|
azure-mgmt-resource
|
|
|
|
azure-mgmt-storage
|
|
|
|
adal
|
2017-02-16 18:01:56 +01:00
|
|
|
# Go back to sqlite once Python 2.7.13 is released
|
|
|
|
pysqlite
|
2016-11-23 17:35:20 +01:00
|
|
|
datadog
|
2017-02-16 18:01:56 +01:00
|
|
|
digital-ocean
|
2015-12-18 18:51:01 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-05-18 11:40:27 +02:00
|
|
|
postInstall = ''
|
|
|
|
make -C doc/manual install nixops.1 docbookxsl=${docbook5_xsl}/xml/xsl/docbook \
|
|
|
|
docdir=$out/share/doc/nixops mandir=$out/share/man
|
2015-12-18 18:51:01 +01:00
|
|
|
|
2017-05-18 11:40:27 +02:00
|
|
|
mkdir -p $out/share/nix/nixops
|
|
|
|
cp -av "nix/"* $out/share/nix/nixops
|
2015-12-18 18:51:01 +01:00
|
|
|
|
2017-05-18 11:40:27 +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"
|
|
|
|
'';
|
2015-12-18 18:51:01 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/NixOS/nixops;
|
|
|
|
description = "NixOS cloud provisioning and deployment tool";
|
2017-05-18 11:40:27 +02:00
|
|
|
maintainers = with lib.maintainers; [ eelco rob domenkozar ];
|
2015-12-18 18:51:01 +01:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|