17 stdenv.mkDerivation rec {
18 pname = "cloudflare-warp";
19 version = "2024.9.346";
22 aarch64-linux = "arm64";
23 x86_64-linux = "amd64";
24 }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
27 url = "https://pkg.cloudflareclient.com/pool/noble/main/c/cloudflare-warp/cloudflare-warp_${version}.0_${suffix}.deb";
29 aarch64-linux = "sha256-dgu/OiQPT7bkPnhrDArQg2lDAcOyhzZ5nJrjS2dqpFo=";
30 x86_64-linux = "sha256-KwxLF7LWB49M+kZPJ9M4OcDSF1f3MX4S0dTtTkzQVRQ=";
31 }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
52 name = "com.cloudflare.WarpCli";
53 desktopName = "Cloudflare Zero Trust Team Enrollment";
54 categories = [ "Utility" "Security" "ConsoleOnly" ];
56 mimeTypes = [ "x-scheme-handler/com.cloudflare.warp" ];
57 exec = "warp-cli teams-enroll-token %u";
58 startupNotify = false;
63 autoPatchelfIgnoreMissingDeps = [
73 patchelf --replace-needed libpcap.so.0.8 ${libpcap}/lib/libpcap.so $out/bin/warp-dex
74 mv lib/systemd/system $out/lib/systemd/
75 substituteInPlace $out/lib/systemd/system/warp-svc.service \
76 --replace "ExecStart=" "ExecStart=$out"
77 substituteInPlace $out/lib/systemd/user/warp-taskbar.service \
78 --replace "ExecStart=" "ExecStart=$out"
80 cat >>$out/lib/systemd/user/warp-taskbar.service <<EOF
83 BindReadOnlyPaths=$out:/usr:
90 wrapProgram $out/bin/warp-svc --prefix PATH : ${lib.makeBinPath [ nftables ]}
94 description = "Replaces the connection between your device and the Internet with a modern, optimized, protocol";
95 homepage = "https://pkg.cloudflareclient.com/packages/cloudflare-warp";
96 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
97 license = licenses.unfree;
98 mainProgram = "warp-cli";
99 maintainers = with maintainers; [
103 platforms = [ "x86_64-linux" "aarch64-linux" ];