2022-08-04 19:13:36 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, curl, recode, spidermonkey_102 }:
|
2012-08-26 12:43:25 +00:00
|
|
|
|
2012-09-25 15:44:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2012-08-26 12:43:25 +00:00
|
|
|
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "plowshare";
|
2017-08-18 07:16:29 +00:00
|
|
|
version = "2.1.7";
|
2012-08-26 12:43:25 +00:00
|
|
|
|
2015-08-15 10:42:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mcrapet";
|
|
|
|
repo = "plowshare";
|
|
|
|
rev = "v${version}";
|
2017-08-18 07:16:29 +00:00
|
|
|
sha256 = "1p8s60dlzaldp006yj710s371aan915asyjhd99188vrj4jj1x79";
|
2012-08-26 12:43:25 +00:00
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2012-08-26 12:43:25 +00:00
|
|
|
|
2021-07-20 14:58:42 +00:00
|
|
|
dontBuild = true;
|
2012-08-26 12:43:25 +00:00
|
|
|
|
2012-08-29 13:16:03 +00:00
|
|
|
installPhase = ''
|
|
|
|
make PREFIX="$out" install
|
|
|
|
|
2017-06-28 15:07:15 +00:00
|
|
|
for fn in plow{del,down,list,mod,probe,up}; do
|
2022-08-04 19:13:36 +00:00
|
|
|
wrapProgram "$out/bin/$fn" --prefix PATH : "${lib.makeBinPath [ curl recode spidermonkey_102 ]}"
|
2012-08-29 13:16:03 +00:00
|
|
|
done
|
2012-08-26 12:43:25 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''
|
|
|
|
A command-line download/upload tool for popular file sharing websites
|
|
|
|
'';
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2023-11-12 21:56:54 +00:00
|
|
|
maintainers = with lib.maintainers; [ aforemny ];
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2012-08-26 12:43:25 +00:00
|
|
|
};
|
|
|
|
}
|