11 stdenv.mkDerivation rec {
12 pname = "ec2-ami-tools";
22 url = "https://s3.amazonaws.com/ec2-downloads/${pname}-${version}.zip";
23 sha256 = "sha256-vdpElL6n1V3/+ZVFndRwWpU/M2W7xp8DQwx5a1zB3X8=";
26 # Amazon EC2 requires that disk images are writable. If they're
27 # not, the VM immediately terminates with a mysterious
28 # "Server.InternalError" message. Since disk images generated in
29 # the Nix store are read-only, they must be made writable in the
30 # tarball uploaded to Amazon S3. So add a `--mode=0755' flag to the
32 patches = [ ./writable.patch ];
39 for i in $out/bin/*; do
50 sed -i 's|/bin/bash|${stdenv.shell}|' $out/lib/ec2/platform/base/pipeline.rb
54 homepage = "https://aws.amazon.com/developertools/Amazon-EC2/368";
55 description = "Command-line tools to create and manage Amazon EC2 virtual machine images";
56 license = lib.licenses.amazonsl;