2016-11-17 14:14:52 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, gawk, gnused, utillinux }:
|
2016-03-30 13:39:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
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
|
|
|
|
name = "cloud-utils-0.29";
|
2016-03-30 13:39:53 +00:00
|
|
|
src = fetchurl {
|
2016-11-17 14:14:52 +00:00
|
|
|
url = "https://launchpad.net/cloud-utils/trunk/0.29/+download/cloud-utils-0.29.tar.gz";
|
|
|
|
sha256 = "0z15gs8gmpy5gqxl7yiyjj7a6s8iw44djj6axvbci627b9pvd8cy";
|
2016-03-30 13:39:53 +00:00
|
|
|
};
|
2016-11-17 14:14:52 +00:00
|
|
|
buildInputs = [ makeWrapper ];
|
2016-03-30 13:39:53 +00:00
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp bin/growpart $out/bin/growpart
|
|
|
|
sed -i 's|awk|gawk|' $out/bin/growpart
|
|
|
|
sed -i 's|sed|gnused|' $out/bin/growpart
|
2016-11-17 14:14:52 +00:00
|
|
|
ln -s sed $out/bin/gnused
|
|
|
|
wrapProgram $out/bin/growpart --prefix PATH : "${stdenv.lib.makeBinPath [ gnused gawk utillinux ]}:$out/bin"
|
2016-03-30 13:39:53 +00:00
|
|
|
'';
|
|
|
|
dontInstall = true;
|
|
|
|
dontPatchShebangs = true;
|
2016-11-17 14:14:52 +00:00
|
|
|
dontStrip = true;
|
2016-08-02 16:06:29 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
2016-03-30 13:39:53 +00:00
|
|
|
}
|