2017-10-01 22:48:20 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper
|
|
|
|
, gawk, gnused, utillinux, file
|
2019-03-28 03:20:33 +00:00
|
|
|
, wget, python3, qemu-utils, euca2ools
|
2017-10-01 22:48:20 +01:00
|
|
|
, e2fsprogs, cdrkit }:
|
2016-03-30 14:39:53 +01:00
|
|
|
|
2017-10-01 22:48:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-11-17 14:14:52 +00:00
|
|
|
# NOTICE: if you bump this, make sure to run
|
|
|
|
# $ nix-build nixos/release-combined.nix -A nixos.tests.ec2-nixops
|
2018-01-06 13:52:51 +00:00
|
|
|
# growpart is needed in initrd in nixos/system/boot/grow-partition.nix
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cloud-utils";
|
2020-06-29 13:50:15 +01:00
|
|
|
version = "0.31";
|
2016-03-30 14:39:53 +01:00
|
|
|
src = fetchurl {
|
2020-06-29 13:50:15 +01:00
|
|
|
url = "https://launchpad.net/cloud-utils/trunk/${version}/+download/cloud-utils-${version}.tar.gz";
|
|
|
|
sha256 = "07fl3dlqwdzw4xx7mcxhpkks6dnmaxha80zgs9f6wmibgzni8z0r";
|
2016-03-30 14:39:53 +01:00
|
|
|
};
|
2017-10-01 22:48:20 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ python3 ];
|
|
|
|
installFlags = [ "LIBDIR=$(out)/lib" "BINDIR=$(out)/bin" "MANDIR=$(out)/man/man1" "DOCDIR=$(out)/doc" ];
|
|
|
|
|
|
|
|
# according to https://packages.ubuntu.com/source/zesty/cloud-utils
|
|
|
|
binDeps = [
|
2019-03-28 03:20:33 +00:00
|
|
|
wget e2fsprogs file gnused gawk utillinux qemu-utils euca2ools cdrkit
|
2017-10-01 22:48:20 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
wrapProgram $i --prefix PATH : "${stdenv.lib.makeBinPath binDeps}:$out/bin"
|
|
|
|
done
|
2016-03-30 14:39:53 +01:00
|
|
|
'';
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2017-10-01 22:48:20 +01:00
|
|
|
dontBuild = true;
|
|
|
|
|
2018-09-11 22:31:27 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
2016-03-30 14:39:53 +01:00
|
|
|
}
|