8 inherit (stdenv.hostPlatform) system;
9 throwSystem = throw "Unsupported system: ${system}";
13 x86_64-linux = "linux_amd64";
14 aarch64-linux = "linux_arm64";
15 armv7l-linux = "linux_armv7";
17 .${system} or throwSystem;
21 x86_64-linux = "sha256-oga8WQYxFeJlXhkJRpgb08QSV1vA7rfbVzwxxdl8xUw=";
22 aarch64-linux = "sha256-Xa7CGpv35fZDZjYmR3y3NUriOt1/I85556P32eP9UjQ=";
23 armv7l-linux = "sha256-k3FGn5pZX5Iqzh0J/nclQC4+n6CMrr+JPt2/rabnWvo=";
25 .${system} or throwSystem;
27 stdenv.mkDerivation (finalAttrs: {
32 url = "https://github.com/openziti/zrok/releases/download/v${finalAttrs.version}/zrok_${finalAttrs.version}_${plat}.tar.gz";
37 updateScript = ./update.sh;
41 interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")";
48 chmod +x $out/bin/zrok
49 patchelf --set-interpreter "${interpreter}" "$out/bin/zrok"
55 description = "Geo-scale, next-generation sharing platform built on top of OpenZiti";
56 homepage = "https://zrok.io";
57 license = lib.licenses.asl20;
59 maintainers = [ lib.maintainers.bandresen ];
65 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];