nixpkgs-suyu/pkgs/tools/misc/cloud-utils/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2017-10-01 23:48:20 +02:00
{ stdenv, fetchurl, makeWrapper
, gawk, gnused, utillinux, file
2019-03-28 04:20:33 +01:00
, wget, python3, qemu-utils, euca2ools
2017-10-01 23:48:20 +02:00
, e2fsprogs, cdrkit }:
2017-10-01 23:48:20 +02:00
stdenv.mkDerivation rec {
# NOTICE: if you bump this, make sure to run
# $ nix-build nixos/release-combined.nix -A nixos.tests.ec2-nixops
# growpart is needed in initrd in nixos/system/boot/grow-partition.nix
pname = "cloud-utils";
2017-10-01 23:48:20 +02:00
version = "0.30";
src = fetchurl {
2017-10-01 23:48:20 +02:00
url = "https://launchpad.net/cloud-utils/trunk/0.3/+download/cloud-utils-${version}.tar.gz";
sha256 = "19ca9ckwwsvlqrjz19bc93rq4gv3y4ak7551li2qk95caqyxsq3k";
};
2017-10-01 23:48:20 +02: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 04:20:33 +01:00
wget e2fsprogs file gnused gawk utillinux qemu-utils euca2ools cdrkit
2017-10-01 23:48:20 +02:00
];
postFixup = ''
for i in $out/bin/*; do
wrapProgram $i --prefix PATH : "${stdenv.lib.makeBinPath binDeps}:$out/bin"
done
'';
2017-10-01 23:48:20 +02:00
dontBuild = true;
2018-09-11 23:31:27 +02:00
meta = with stdenv.lib; {
platforms = platforms.unix;
license = licenses.gpl3;
};
}