1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 16:11:58 +00:00
nixpkgs/pkgs/tools/misc/plowshare/default.nix

36 lines
882 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, 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}";
version = "1.1.0";
2012-08-26 13:43:25 +01:00
src = fetchFromGitHub {
owner = "mcrapet";
repo = "plowshare";
rev = "v${version}";
sha256 = "1xxkdv4q97dfzbcdnmy5079a59fwh8myxlvdr2dlxdv70fb72sq9";
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
2016-08-22 23:06:51 +01:00
wrapProgram "$out/bin/$fn" --prefix PATH : "${stdenv.lib.makeBinPath [ curl spidermonkey ]}"
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 ];
platforms = stdenv.lib.platforms.linux;
2012-08-26 13:43:25 +01:00
};
}