Files
nixpkgs/pkgs/by-name/sp/speedify/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

62 lines
1.6 KiB
Nix
Executable File

{
lib,
stdenv,
dpkg,
fetchurl,
procps,
net-tools,
autoPatchelfHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "speedify";
version = "15.8.2-12611";
src = fetchurl {
url = "https://apt.connectify.me/pool/main/s/speedify/speedify_${finalAttrs.version}_amd64.deb";
hash = "sha256-61GQZkXBe3EQpOUODpL60SCHJO0FGqvpL9xFn+q+kPs=";
};
nativeBuildInputs = [
dpkg
autoPatchelfHook
];
buildInputs = [
procps
net-tools
];
installPhase = ''
runHook preInstall
substituteInPlace "usr/share/speedify/SpeedifyStartup.sh" "usr/share/speedify/SpeedifyShutdown.sh" "usr/share/speedify/GenerateLogs.sh" \
--replace-fail '/usr/share/' "$out/share/"
substituteInPlace "usr/share/speedify/SpeedifyStartup.sh" \
--replace-fail 'logs' "/var/log/speedify"
mkdir -p $out/share/
mv usr/share $out/
mkdir -p $out/etc/
mv lib/systemd $out/etc/
mkdir -p $out/bin
ln -s $out/share/speedify/speedify_cli $out/bin/speedify_cli
runHook postInstall
'';
meta = {
homepage = "https://speedify.com/";
description = "Use multiple internet connections in parallel";
longDescription = ''
Combine multiple internet connections (Wi-Fi, 4G, 5G, Ethernet, Starlink, Satellite, and more)
to improve the stability, speed, and security of your online experiences.
Check corresponding option {option}`services.speedify.enable`
'';
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ zahrun ];
};
})