nixpkgs/pkgs/tools/misc/plowshare/default.nix
Alexander Foremny aed5c36694 Use makeWrapper
2012-08-29 15:16:03 +02:00

35 lines
720 B
Nix

{ stdenv, fetchurl, makeWrapper, curl }:
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";
};
buildInputs = [ makeWrapper curl ];
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
installPhase = ''
make PREFIX="$out" install
for fn in plow{del,down,list,up}; do
wrapProgram "$out/bin/$fn" --prefix PATH
done
'';
meta = {
description = ''
A command-line download/upload tool for popular file sharing websites
'';
license = stdenv.lib.licenses.gpl3;
};
}