Skip to content

Commit

Permalink
Add main program and update script
Browse files Browse the repository at this point in the history
  • Loading branch information
YarekTyshchenko committed Sep 20, 2024
1 parent 8b59d4a commit 1c518a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/by-name/ca/cato-client/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ let
sha256 = "sha256-0hUchaxaiKJth2ByQMFfjsCLi/4kl+SrNSQ33Y6r3WA=";
};

passthru.updateScript = writeScript "update-cato-client" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pcre2 common-updater-scripts
set -eu -o pipefail
version="$(curl -sI https://clientdownload.catonetworks.com/public/clients/cato-client-install.deb | grep -Fi 'Location:' | pcre2grep -o1 '/(([0-9]\.?)+)/')"
update-source-version cato-client "$version"
'';

dontConfigure = true;

nativeBuildInputs = [
Expand Down Expand Up @@ -55,6 +65,7 @@ let
meta = {
description = "Cato Client is a lightweight agent that provides secure zero-trust access to resources everywhere";
homepage = "https://www.catonetworks.com/platform/cato-client/";
mainProgram = "cato-sdp";
license = lib.licenses.unfree;
maintainers = with maintainers; [ yarekt ];
platforms = [ "x86_64-linux" ];
Expand Down

0 comments on commit 1c518a1

Please sign in to comment.