nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 993 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeBinaryWrapper, 6 curl, 7 recode, 8 spidermonkey_140, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 13 pname = "plowshare"; 14 version = "2.1.7"; 15 16 src = fetchFromGitHub { 17 owner = "mcrapet"; 18 repo = "plowshare"; 19 rev = "v${finalAttrs.version}"; 20 hash = "sha256-6fQgJZF5IxRSalB6rUpIVqlwhgbhSG8AuI2qTxswGt0="; 21 }; 22 23 nativeBuildInputs = [ makeBinaryWrapper ]; 24 25 dontBuild = true; 26 27 installPhase = '' 28 make PREFIX="$out" install 29 30 for fn in plow{del,down,list,mod,probe,up}; do 31 wrapProgram "$out/bin/$fn" --prefix PATH : "${ 32 lib.makeBinPath [ 33 curl 34 recode 35 spidermonkey_140 36 ] 37 }" 38 done 39 ''; 40 41 meta = { 42 description = "Command-line download/upload tool for popular file sharing websites"; 43 homepage = "https://github.com/mcrapet/plowshare"; 44 license = lib.licenses.gpl3; 45 maintainers = with lib.maintainers; [ aforemny ]; 46 platforms = lib.platforms.linux; 47 }; 48})