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

35 lines
841 B
Nix
Raw Normal View History

2014-07-15 16:21:03 +01:00
{ stdenv, fetchgit, makeWrapper, curl, 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
name = "plowshare4-${version}";
2012-08-26 13:43:25 +01:00
version = "1.1.0";
2012-08-26 13:43:25 +01:00
2014-07-15 16:21:03 +01:00
src = fetchgit {
url = "https://code.google.com/p/plowshare/";
rev = "87bd955e681ddda05009ca8594d727260989d5ed";
sha256 = "0cbsnalmr6fa1ijsn1j1p9fdqi3ii96bx3xabgvvbbqkl7q938f9";
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
for fn in plow{del,down,list,up}; do
2014-07-15 16:21:03 +01:00
wrapProgram "$out/bin/$fn" --prefix PATH : "${curl}/bin:${spidermonkey}/bin"
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;
2012-08-31 15:01:19 +01:00
maintainers = [ stdenv.lib.maintainers.aforemny ];
2012-08-26 13:43:25 +01:00
};
}