diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-12-12 05:32:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 05:32:23 +0100 |
commit | edea031f960e3647bd147c75ada3bb00638acb59 (patch) | |
tree | 4be130b0ca9cb739eed2670d1871b4277909a81d /pkgs | |
parent | b576bc2681ccc45a341f8dafa3361fe4e6bbfd1f (diff) | |
parent | edfbace3a5d6b774268b985703bf9f6ec762e4b3 (diff) | |
download | nixlib-edea031f960e3647bd147c75ada3bb00638acb59.tar nixlib-edea031f960e3647bd147c75ada3bb00638acb59.tar.gz nixlib-edea031f960e3647bd147c75ada3bb00638acb59.tar.bz2 nixlib-edea031f960e3647bd147c75ada3bb00638acb59.tar.lz nixlib-edea031f960e3647bd147c75ada3bb00638acb59.tar.xz nixlib-edea031f960e3647bd147c75ada3bb00638acb59.tar.zst nixlib-edea031f960e3647bd147c75ada3bb00638acb59.zip |
Merge pull request #273349 from r-ryantm/auto-update/zrok
zrok: 0.4.15 -> 0.4.18
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/networking/zrok/default.nix | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/pkgs/tools/networking/zrok/default.nix b/pkgs/tools/networking/zrok/default.nix index 7b49b4a26b97..74fb313d9fc7 100644 --- a/pkgs/tools/networking/zrok/default.nix +++ b/pkgs/tools/networking/zrok/default.nix @@ -1,4 +1,7 @@ -{ lib, stdenv, fetchzip }: +{ lib +, stdenv +, fetchzip +}: let inherit (stdenv.hostPlatform) system; @@ -10,20 +13,20 @@ let armv7l-linux = "linux_armv7"; }.${system} or throwSystem; - sha256 = { - x86_64-linux = "sha256-6oYZY1Ry4U/nR99DNsr7ZqTd/AAot+yrOHY75UXEuWY="; - aarch64-linux = "sha256-/XAv/ptvUsWLF/iIOiqm/PoCLhVTL3Cnmd0YdqLBthk="; - armv7l-linux = "sha256-CbtzY2q7HnqCcolTFyTphWbHN/VdSt/rs8q3tjHHNqc="; + hash = { + x86_64-linux = "sha256-vAX7vx13eHyPuDe4q5b8dQD90l5bbnncMGlXnegumxM="; + aarch64-linux = "sha256-6x/E0uAPFOsuoJ/ePLV483M07Rqj5pkcpETOVq9RXKU="; + armv7l-linux = "sha256-UlpqoKfjyGLNKvSrXqqsiiq/wTlfmBmPfynDoFT/nuQ="; }.${system} or throwSystem; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "zrok"; - version = "0.4.15"; + version = "0.4.18"; src = fetchzip { - url = "https://github.com/openziti/zrok/releases/download/v${version}/zrok_${version}_${plat}.tar.gz"; + url = "https://github.com/openziti/zrok/releases/download/v${finalAttrs.version}/zrok_${finalAttrs.version}_${plat}.tar.gz"; stripRoot = false; - inherit sha256; + inherit hash; }; updateScript = ./update.sh; @@ -31,19 +34,23 @@ stdenv.mkDerivation rec { installPhase = let interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")"; in '' + runHook preInstall + mkdir -p $out/bin cp zrok $out/bin/ chmod +x $out/bin/zrok patchelf --set-interpreter "${interpreter}" "$out/bin/zrok" + + runHook postInstall ''; meta = { description = "Geo-scale, next-generation sharing platform built on top of OpenZiti"; homepage = "https://zrok.io"; + license = lib.licenses.asl20; + mainProgram = "zrok"; maintainers = [ lib.maintainers.bandresen ]; platforms = [ "x86_64-linux" "aarch64-linux" "armv7l-linux" ]; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; - license = lib.licenses.asl20; }; - -} +}) |