2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nodejs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "pairdrop";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.7.6";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "schlagmichdoch";
|
|
|
|
repo = "PairDrop";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-AOFATOCLf2KigeqoUzIfNngyeDesNrThRzxFvqtsXBs=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
npmDepsHash = "sha256-3nKjmC5eizoV/mrKDBhsSlVQxEHyIsWR6KHFwZhBugI=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
dontNpmBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/bin $out/lib
|
|
|
|
cp -r * $out/lib
|
|
|
|
|
|
|
|
makeWrapper ${nodejs}/bin/node "$out/bin/pairdrop" --add-flags "index.js public --rate-limit --auto-restart"
|
|
|
|
wrapProgram $out/bin/pairdrop --chdir "$out/lib"
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Local file sharing in your browser";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pairdrop";
|
2023-07-15 17:15:38 +00:00
|
|
|
longDescription = ''
|
|
|
|
PairDrop is a sublime alternative to AirDrop that works on all platforms.
|
|
|
|
Send images, documents or text via peer to peer connection to devices in the same local network/Wi-Fi or to paired devices.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/schlagmichdoch/PairDrop";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
|
|
};
|
|
|
|
}
|