Merge pull request #221863 from bennyandresen/zrok-bin__new

zrok: init at 0.3.4
This commit is contained in:
Sandro 2023-04-06 15:57:12 +02:00 committed by GitHub
commit a97b5d3950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -39460,6 +39460,8 @@ with pkgs;
zoneminder = callPackage ../servers/zoneminder { };
zrok = callPackage ../tools/networking/zrok { };
xcp = callPackage ../tools/misc/xcp { };
zxcvbn-c = callPackage ../development/libraries/zxcvbn-c { };