3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/plowshare/default.nix

36 lines
791 B
Nix
Raw Normal View History

2012-08-29 14:16:03 +01:00
{ stdenv, fetchurl, makeWrapper, curl }:
2012-08-26 13:43:25 +01:00
let
v = "20120807";
in stdenv.mkDerivation {
name = "plowshare-git${v}";
src = fetchurl {
url = "http://plowshare.googlecode.com/files/plowshare-snapshot-git${v}.tar.gz";
sha256 = "0clryfssaa4rjvsy760p51ppq1275lwvhm9jh3g4mi973xv4n8si";
};
2012-08-29 14:16:03 +01:00
buildInputs = [ makeWrapper curl ];
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
2012-08-30 13:27:03 +01:00
wrapProgram "$out/bin/$fn" --prefix PATH : "${curl}/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
};
}