2015-08-15 03:42:22 -07:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, curl, spidermonkey }:
|
2012-08-26 05:43:25 -07:00
|
|
|
|
2012-09-25 08:44:57 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2012-08-26 05:43:25 -07:00
|
|
|
|
2012-11-27 01:49:57 -08:00
|
|
|
name = "plowshare4-${version}";
|
2014-11-29 12:36:00 -08:00
|
|
|
version = "1.1.0";
|
2012-08-26 05:43:25 -07:00
|
|
|
|
2015-08-15 03:42:22 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mcrapet";
|
|
|
|
repo = "plowshare";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1xxkdv4q97dfzbcdnmy5079a59fwh8myxlvdr2dlxdv70fb72sq9";
|
2012-08-26 05:43:25 -07:00
|
|
|
};
|
|
|
|
|
2012-08-31 07:02:10 -07:00
|
|
|
buildInputs = [ makeWrapper ];
|
2012-08-26 05:43:25 -07:00
|
|
|
|
2012-08-29 06:16:03 -07:00
|
|
|
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
2012-08-26 05:43:25 -07:00
|
|
|
|
2012-08-29 06:16:03 -07:00
|
|
|
installPhase = ''
|
|
|
|
make PREFIX="$out" install
|
|
|
|
|
|
|
|
for fn in plow{del,down,list,up}; do
|
2015-10-13 09:56:09 -07:00
|
|
|
wrapProgram "$out/bin/$fn" --prefix PATH : "${curl.bin}/bin:${spidermonkey.out}/bin"
|
2012-08-29 06:16:03 -07:00
|
|
|
done
|
2012-08-26 05:43:25 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''
|
|
|
|
A command-line download/upload tool for popular file sharing websites
|
|
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2012-08-31 07:01:19 -07:00
|
|
|
maintainers = [ stdenv.lib.maintainers.aforemny ];
|
2012-08-26 05:43:25 -07:00
|
|
|
};
|
|
|
|
}
|