nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 49 lines 924 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6 curl, 7 recode, 8 spidermonkey_115, 9}: 10 11stdenv.mkDerivation rec { 12 13 pname = "plowshare"; 14 version = "2.1.7"; 15 16 src = fetchFromGitHub { 17 owner = "mcrapet"; 18 repo = "plowshare"; 19 rev = "v${version}"; 20 sha256 = "1p8s60dlzaldp006yj710s371aan915asyjhd99188vrj4jj1x79"; 21 }; 22 23 nativeBuildInputs = [ makeWrapper ]; 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_115 36 ] 37 }" 38 done 39 ''; 40 41 meta = { 42 description = '' 43 A command-line download/upload tool for popular file sharing websites 44 ''; 45 license = lib.licenses.gpl3; 46 maintainers = with lib.maintainers; [ aforemny ]; 47 platforms = lib.platforms.linux; 48 }; 49}