nixpkgs/pkgs/tools/misc/plowshare/default.nix

36 lines
923 B
Nix
Raw Normal View History

2017-06-28 16:07:15 +01:00
{ stdenv, fetchFromGitHub, makeWrapper, curl, recode, spidermonkey }:
2012-08-26 13:43:25 +01:00
2012-09-25 16:44:57 +01:00
stdenv.mkDerivation rec {
2012-08-26 13:43:25 +01:00
2017-06-28 16:07:15 +01:00
name = "plowshare-${version}";
version = "2.1.6";
2012-08-26 13:43:25 +01:00
src = fetchFromGitHub {
owner = "mcrapet";
repo = "plowshare";
rev = "v${version}";
2017-06-28 16:07:15 +01:00
sha256 = "116291w0z1r61xm3a3zjlh85f05pk4ng9f1wbj9kv1j3xrjn4v4c";
2012-08-26 13:43:25 +01:00
};
2012-08-31 15:02:10 +01:00
buildInputs = [ makeWrapper ];
2012-08-26 13:43:25 +01:00
2012-08-29 14:16:03 +01:00
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
2012-08-26 13:43:25 +01:00
2012-08-29 14:16:03 +01:00
installPhase = ''
make PREFIX="$out" install
2017-06-28 16:07:15 +01:00
for fn in plow{del,down,list,mod,probe,up}; do
wrapProgram "$out/bin/$fn" --prefix PATH : "${stdenv.lib.makeBinPath [ curl recode spidermonkey ]}"
2012-08-29 14:16:03 +01:00
done
2012-08-26 13:43:25 +01:00
'';
meta = {
description = ''
A command-line download/upload tool for popular file sharing websites
'';
license = stdenv.lib.licenses.gpl3;
2017-06-28 16:07:15 +01:00
maintainers = with stdenv.lib.maintainers; [ aforemny jfrankenau ];
platforms = stdenv.lib.platforms.linux;
2012-08-26 13:43:25 +01:00
};
}