2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre }:
|
2011-08-04 13:13:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-02 10:38:45 +01:00
|
|
|
pname = "aws-mturk-clt";
|
|
|
|
version = "1.3.0";
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2011-08-04 13:13:53 +01:00
|
|
|
src = fetchurl {
|
2021-08-02 10:38:45 +01:00
|
|
|
url = "https://mturk.s3.amazonaws.com/CLTSource/aws-mturk-clt-${version}.tar.gz";
|
2015-12-31 12:48:07 +00:00
|
|
|
sha256 = "00yyc7k3iygg83cknv9i2dsaxwpwzdkc8a2l9j56lg999hw3mqm3";
|
2011-08-04 13:13:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -prvd bin $out/
|
|
|
|
|
|
|
|
for i in $out/bin/*.sh; do
|
|
|
|
sed -i "$i" -e "s|^MTURK_CMD_HOME=.*|MTURK_CMD_HOME=$out\nexport JAVA_HOME=${jre}|"
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p $out/lib
|
|
|
|
cp -prvd lib/* $out/lib/
|
|
|
|
''; # */
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://requester.mturk.com/developer";
|
2011-08-04 13:13:53 +01:00
|
|
|
description = "Command line tools for interacting with the Amazon Mechanical Turk";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.amazonsl;
|
2011-08-04 13:13:53 +01:00
|
|
|
|
|
|
|
longDescription =
|
|
|
|
''
|
|
|
|
The Amazon Mechanical Turk is a crowdsourcing marketplace that
|
|
|
|
allows users (“requesters”) to submit tasks to be performed by
|
|
|
|
other humans (“workers”) for a small fee. This package
|
|
|
|
contains command-line tools for submitting tasks, querying
|
|
|
|
results, and so on.
|
|
|
|
|
|
|
|
The command-line tools expect a file
|
|
|
|
<filename>mturk.properties<filename> in the current directory,
|
|
|
|
which should contain the following:
|
|
|
|
|
|
|
|
<screen>
|
|
|
|
access_key=[insert your access key here]
|
|
|
|
secret_key=[insert your secret key here]
|
|
|
|
service_url=http://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester
|
|
|
|
</screen>
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|