depot/third_party/nixpkgs/pkgs/tools/misc/plowshare/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

35 lines
896 B
Nix

{ lib, stdenv, fetchFromGitHub, makeWrapper, curl, recode, spidermonkey_38 }:
stdenv.mkDerivation rec {
pname = "plowshare";
version = "2.1.7";
src = fetchFromGitHub {
owner = "mcrapet";
repo = "plowshare";
rev = "v${version}";
sha256 = "1p8s60dlzaldp006yj710s371aan915asyjhd99188vrj4jj1x79";
};
buildInputs = [ makeWrapper ];
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
installPhase = ''
make PREFIX="$out" install
for fn in plow{del,down,list,mod,probe,up}; do
wrapProgram "$out/bin/$fn" --prefix PATH : "${lib.makeBinPath [ curl recode spidermonkey_38 ]}"
done
'';
meta = {
description = ''
A command-line download/upload tool for popular file sharing websites
'';
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ aforemny jfrankenau ];
platforms = lib.platforms.linux;
};
}