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

34 lines
806 B
Nix
Raw Normal View History

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