2023-03-18 16:35:53 +01:00
|
|
|
{ stdenv, lib, fetchzip, patchelf }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zrok";
|
2023-04-20 02:37:05 +02:00
|
|
|
version = "0.3.6";
|
2023-03-18 16:35:53 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/openziti/zrok/releases/download/v${version}/zrok_${version}_linux_amd64.tar.gz";
|
|
|
|
stripRoot = false;
|
2023-04-20 02:37:05 +02:00
|
|
|
sha256 = "sha256-gcmgpvfk7bciTmotTHObvZvLPdLudAR2vQneLKN+uE4=";
|
2023-03-18 16:35:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|