diff --git a/pkgs/tools/networking/zrok/default.nix b/pkgs/tools/networking/zrok/default.nix new file mode 100644 index 000000000000..f6d32d9cca99 --- /dev/null +++ b/pkgs/tools/networking/zrok/default.nix @@ -0,0 +1,31 @@ +{ stdenv, lib, fetchzip, patchelf }: + +stdenv.mkDerivation rec { + pname = "zrok"; + version = "0.3.4"; + + src = fetchzip { + url = "https://github.com/openziti/zrok/releases/download/v${version}/zrok_${version}_linux_amd64.tar.gz"; + stripRoot = false; + sha256 = "sha256-lfsKOo53DarrczQfFhZED2vmzxIyq/TCPtVZECLMV3U="; + }; + + installPhase = let + interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")"; + in '' + mkdir -p $out/bin + cp zrok $out/bin/ + chmod +x $out/bin/zrok + patchelf --set-interpreter "${interpreter}" "$out/bin/zrok" + ''; + + meta = { + description = "Geo-scale, next-generation sharing platform built on top of OpenZiti"; + homepage = "https://zrok.io"; + maintainers = [ lib.maintainers.bandresen ]; + platforms = [ "x86_64-linux" ]; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + license = lib.licenses.apsl20; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a8be984dab74..ae54a59944ee 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -39116,6 +39116,8 @@ with pkgs; zoneminder = callPackage ../servers/zoneminder { }; + zrok = callPackage ../tools/networking/zrok { }; + xcp = callPackage ../tools/misc/xcp { }; zxcvbn-c = callPackage ../development/libraries/zxcvbn-c { };