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

36 lines
896 B
Nix
Raw Normal View History

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