1{ stdenv, fetchurl, ruby, makeWrapper }:
2
3stdenv.mkDerivation {
4 name = "s3sync-1.2.6";
5
6 src = fetchurl {
7 url = http://s3.amazonaws.com/ServEdge_pub/s3sync/s3sync.tar.gz; # !!!
8 sha256 = "19467mgym0da0hifhkcbivccdima7gkaw3k8q760ilfbwgwxcn7f";
9 };
10
11 buildInputs = [ makeWrapper ];
12
13 installPhase =
14 ''
15 mkdir -p $out/libexec/s3sync
16 cp *.rb $out/libexec/s3sync
17 makeWrapper "${ruby}/bin/ruby $out/libexec/s3sync/s3cmd.rb" $out/bin/s3cmd
18 makeWrapper "${ruby}/bin/ruby $out/libexec/s3sync/s3sync.rb" $out/bin/s3sync
19
20 mkdir -p $out/share/doc/s3sync
21 cp README* $out/share/doc/s3sync/
22 ''; # */
23
24 meta = {
25 homepage = http://s3sync.net/;
26 description = "Command-line tools to manipulate Amazon S3 buckets";
27 license = stdenv.lib.licenses.free; # some custom as-is in file headers
28 };
29}