2010-03-09 15:12:15 +00:00
|
|
|
{ stdenv, fetchurl, ruby, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "s3sync-1.2.6";
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2010-03-09 15:12:15 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://s3.amazonaws.com/ServEdge_pub/s3sync/s3sync.tar.gz; # !!!
|
|
|
|
sha256 = "19467mgym0da0hifhkcbivccdima7gkaw3k8q760ilfbwgwxcn7f";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/libexec/s3sync
|
2010-03-09 15:12:15 +00:00
|
|
|
cp *.rb $out/libexec/s3sync
|
|
|
|
makeWrapper "${ruby}/bin/ruby $out/libexec/s3sync/s3cmd.rb" $out/bin/s3cmd
|
|
|
|
makeWrapper "${ruby}/bin/ruby $out/libexec/s3sync/s3sync.rb" $out/bin/s3sync
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/doc/s3sync
|
2010-03-09 15:12:15 +00:00
|
|
|
cp README* $out/share/doc/s3sync/
|
|
|
|
''; # */
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://s3sync.net/;
|
|
|
|
description = "Command-line tools to manipulate Amazon S3 buckets";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free; # some custom as-is in file headers
|
2010-03-09 15:12:15 +00:00
|
|
|
};
|
|
|
|
}
|