1 { lib, stdenv, fetchurl, jre }:
3 stdenv.mkDerivation rec {
4 pname = "aws-mturk-clt";
8 url = "https://mturk.s3.amazonaws.com/CLTSource/aws-mturk-clt-${version}.tar.gz";
9 sha256 = "00yyc7k3iygg83cknv9i2dsaxwpwzdkc8a2l9j56lg999hw3mqm3";
17 for i in $out/bin/*.sh; do
18 sed -i "$i" -e "s|^MTURK_CMD_HOME=.*|MTURK_CMD_HOME=$out\nexport JAVA_HOME=${jre}|"
22 cp -prvd lib/* $out/lib/
26 homepage = "https://requester.mturk.com/developer";
27 description = "Command line tools for interacting with the Amazon Mechanical Turk";
28 license = lib.licenses.amazonsl;
32 The Amazon Mechanical Turk is a crowdsourcing marketplace that
33 allows users (“requesters”) to submit tasks to be performed by
34 other humans (“workers”) for a small fee. This package
35 contains command-line tools for submitting tasks, querying
38 The command-line tools expect a file
39 <filename>mturk.properties<filename> in the current directory,
40 which should contain the following:
43 access_key=[insert your access key here]
44 secret_key=[insert your secret key here]
45 service_url=http://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester