mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
946369adbd
This removes the spidermonkey alias and renames it in the packages still using it Not sure if we need it in aliases.nix since just about nothing depends on it anymore Additionally considering removal should be a good choice, it's at least insecure so it should get tagged as such
36 lines
919 B
Nix
36 lines
919 B
Nix
{ stdenv, fetchFromGitHub, makeWrapper, curl, recode, spidermonkey_38 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "plowshare";
|
|
version = "2.1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mcrapet";
|
|
repo = "plowshare";
|
|
rev = "v${version}";
|
|
sha256 = "1p8s60dlzaldp006yj710s371aan915asyjhd99188vrj4jj1x79";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
|
|
|
installPhase = ''
|
|
make PREFIX="$out" install
|
|
|
|
for fn in plow{del,down,list,mod,probe,up}; do
|
|
wrapProgram "$out/bin/$fn" --prefix PATH : "${stdenv.lib.makeBinPath [ curl recode spidermonkey_38 ]}"
|
|
done
|
|
'';
|
|
|
|
meta = {
|
|
description = ''
|
|
A command-line download/upload tool for popular file sharing websites
|
|
'';
|
|
license = stdenv.lib.licenses.gpl3;
|
|
maintainers = with stdenv.lib.maintainers; [ aforemny jfrankenau ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|