2012-08-29 15:16:03 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, curl }:
|
2012-08-26 14:43:25 +02:00
|
|
|
|
2012-09-25 17:44:57 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2012-08-26 14:43:25 +02:00
|
|
|
|
2012-09-25 17:44:57 +02:00
|
|
|
name = "plowshare-${version}";
|
2012-08-26 14:43:25 +02:00
|
|
|
|
2012-10-06 12:42:09 +02:00
|
|
|
version = "20120916";
|
2012-08-26 14:43:25 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-10-06 12:42:09 +02:00
|
|
|
url = "http://plowshare.googlecode.com/files/plowshare-snapshot-git${version}.tar.gz";
|
2012-09-25 17:44:57 +02:00
|
|
|
sha256 = "eccdb28d49ac47782abc8614202b3a88426cd587371641ecf2ec008880dc6067";
|
2012-08-26 14:43:25 +02:00
|
|
|
};
|
|
|
|
|
2012-08-31 16:02:10 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
2012-08-26 14:43:25 +02:00
|
|
|
|
2012-08-29 15:16:03 +02:00
|
|
|
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
2012-08-26 14:43:25 +02:00
|
|
|
|
2012-08-29 15:16:03 +02:00
|
|
|
installPhase = ''
|
|
|
|
make PREFIX="$out" install
|
|
|
|
|
|
|
|
for fn in plow{del,down,list,up}; do
|
2012-08-30 14:27:03 +02:00
|
|
|
wrapProgram "$out/bin/$fn" --prefix PATH : "${curl}/bin"
|
2012-08-29 15:16:03 +02:00
|
|
|
done
|
2012-08-26 14:43:25 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''
|
|
|
|
A command-line download/upload tool for popular file sharing websites
|
|
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2012-08-31 16:01:19 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.aforemny ];
|
2012-08-26 14:43:25 +02:00
|
|
|
};
|
|
|
|
}
|