Files
nixpkgs/pkgs/by-name/pl/plowshare/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
972 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
makeBinaryWrapper,
curl,
recode,
spidermonkey_140,
}:
stdenv.mkDerivation rec {
pname = "plowshare";
version = "2.1.7";
src = fetchFromGitHub {
owner = "mcrapet";
repo = "plowshare";
rev = "v${version}";
hash = "sha256-6fQgJZF5IxRSalB6rUpIVqlwhgbhSG8AuI2qTxswGt0=";
};
nativeBuildInputs = [ makeBinaryWrapper ];
dontBuild = true;
installPhase = ''
make PREFIX="$out" install
for fn in plow{del,down,list,mod,probe,up}; do
wrapProgram "$out/bin/$fn" --prefix PATH : "${
lib.makeBinPath [
curl
recode
spidermonkey_140
]
}"
done
'';
meta = {
description = "Command-line download/upload tool for popular file sharing websites";
homepage = "https://github.com/mcrapet/plowshare";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ aforemny ];
platforms = lib.platforms.linux;
};
}