7 inherit (stdenv.hostPlatform) system;
8 throwSystem = throw "Unsupported system: ${system}";
11 x86_64-linux = "linux_amd64";
12 aarch64-linux = "linux_arm64";
13 armv7l-linux = "linux_armv7";
14 }.${system} or throwSystem;
17 x86_64-linux = "sha256-EzMkl/XTtieAj/pg1L4BLTEuWNnQ5m18WYu/sqRZx/I=";
18 aarch64-linux = "sha256-D5FpJBRzvbsgrQmopJQpJZTIm9TroaGB6fkYX2UAaHM=";
19 armv7l-linux = "sha256-PQl/ZQxxkzQ4iTUPBO9tbCsswOnEQuupdzxul0/vKG4=";
20 }.${system} or throwSystem;
22 stdenv.mkDerivation (finalAttrs: {
27 url = "https://github.com/openziti/zrok/releases/download/v${finalAttrs.version}/zrok_${finalAttrs.version}_${plat}.tar.gz";
32 updateScript = ./update.sh;
35 interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")";
41 chmod +x $out/bin/zrok
42 patchelf --set-interpreter "${interpreter}" "$out/bin/zrok"
48 description = "Geo-scale, next-generation sharing platform built on top of OpenZiti";
49 homepage = "https://zrok.io";
50 license = lib.licenses.asl20;
52 maintainers = [ lib.maintainers.bandresen ];
53 platforms = [ "x86_64-linux" "aarch64-linux" "armv7l-linux" ];
54 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];