1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/tools/misc/plowshare/default.nix
2015-08-15 21:04:32 +02:00

35 lines
822 B
Nix

{ stdenv, fetchFromGitHub, makeWrapper, curl, spidermonkey }:
stdenv.mkDerivation rec {
name = "plowshare4-${version}";
version = "1.1.0";
src = fetchFromGitHub {
owner = "mcrapet";
repo = "plowshare";
rev = "v${version}";
sha256 = "1xxkdv4q97dfzbcdnmy5079a59fwh8myxlvdr2dlxdv70fb72sq9";
};
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:${spidermonkey}/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 ];
};
}