mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
0a550a5354
plowshare now comes in two flavours, plowshare4 and plowshare3. plowshare4 is recommonded if one can afford its larger (bash >= 4.1) dependencies which we can. plowshare3 (bash >= 3, busybox) is aimed at embedded devices.
34 lines
806 B
Nix
34 lines
806 B
Nix
{ stdenv, fetchurl, makeWrapper, curl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "plowshare4-${version}";
|
|
|
|
version = "20121126.47e4480";
|
|
|
|
src = fetchurl {
|
|
url = "http://plowshare.googlecode.com/files/plowshare4-snapshot-git${version}.tar.gz";
|
|
sha256 = "1p7bqqfbgcy41hiickgr8cilspyvrrql12rdmfasz0dmgf7nx1x6";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
|
|
|
installPhase = ''
|
|
make PREFIX="$out" install
|
|
|
|
for fn in plow{del,down,list,up}; do
|
|
wrapProgram "$out/bin/$fn" --prefix PATH : "${curl}/bin"
|
|
done
|
|
'';
|
|
|
|
meta = {
|
|
description = ''
|
|
A command-line download/upload tool for popular file sharing websites
|
|
'';
|
|
license = stdenv.lib.licenses.gpl3;
|
|
maintainers = [ stdenv.lib.maintainers.aforemny ];
|
|
};
|
|
}
|