mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
2c97a5caa7
due to inactivity.
36 lines
855 B
Nix
36 lines
855 B
Nix
{ lib, stdenv, fetchFromGitHub, makeWrapper, curl, recode, spidermonkey_102 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "plowshare";
|
|
version = "2.1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mcrapet";
|
|
repo = "plowshare";
|
|
rev = "v${version}";
|
|
sha256 = "1p8s60dlzaldp006yj710s371aan915asyjhd99188vrj4jj1x79";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontBuild = true;
|
|
|
|
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_102 ]}"
|
|
done
|
|
'';
|
|
|
|
meta = {
|
|
description = ''
|
|
A command-line download/upload tool for popular file sharing websites
|
|
'';
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ aforemny ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|