mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
35 lines
822 B
Nix
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 ];
|
|
};
|
|
}
|