nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.6 kB view raw
1{ 2 lib, 3 stdenv, 4 dpkg, 5 fetchurl, 6 procps, 7 net-tools, 8 autoPatchelfHook, 9}: 10stdenv.mkDerivation (finalAttrs: { 11 pname = "speedify"; 12 version = "15.8.2-12611"; 13 14 src = fetchurl { 15 url = "https://apt.connectify.me/pool/main/s/speedify/speedify_${finalAttrs.version}_amd64.deb"; 16 hash = "sha256-61GQZkXBe3EQpOUODpL60SCHJO0FGqvpL9xFn+q+kPs="; 17 }; 18 19 nativeBuildInputs = [ 20 dpkg 21 autoPatchelfHook 22 ]; 23 24 buildInputs = [ 25 procps 26 net-tools 27 ]; 28 29 installPhase = '' 30 runHook preInstall 31 32 substituteInPlace "usr/share/speedify/SpeedifyStartup.sh" "usr/share/speedify/SpeedifyShutdown.sh" "usr/share/speedify/GenerateLogs.sh" \ 33 --replace-fail '/usr/share/' "$out/share/" 34 substituteInPlace "usr/share/speedify/SpeedifyStartup.sh" \ 35 --replace-fail 'logs' "/var/log/speedify" 36 37 mkdir -p $out/share/ 38 mv usr/share $out/ 39 mkdir -p $out/etc/ 40 mv lib/systemd $out/etc/ 41 42 mkdir -p $out/bin 43 ln -s $out/share/speedify/speedify_cli $out/bin/speedify_cli 44 45 runHook postInstall 46 ''; 47 48 meta = { 49 homepage = "https://speedify.com/"; 50 description = "Use multiple internet connections in parallel"; 51 longDescription = '' 52 Combine multiple internet connections (Wi-Fi, 4G, 5G, Ethernet, Starlink, Satellite, and more) 53 to improve the stability, speed, and security of your online experiences. 54 Check corresponding option {option}`services.speedify.enable` 55 ''; 56 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 57 license = lib.licenses.unfree; 58 platforms = [ "x86_64-linux" ]; 59 maintainers = with lib.maintainers; [ zahrun ]; 60 }; 61})