From 0c6d7d7255d7051bc92a12f7e6f94166b7722fec Mon Sep 17 00:00:00 2001 From: Bob van der Linden Date: Sat, 26 Oct 2024 16:32:50 +0200 Subject: [PATCH 1/2] ngrok: 3.16.0 -> 3.18.1 --- pkgs/by-name/ng/ngrok/versions.json | 36 ++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/pkgs/by-name/ng/ngrok/versions.json b/pkgs/by-name/ng/ngrok/versions.json index 8f45214d411b1..453116873bede 100644 --- a/pkgs/by-name/ng/ngrok/versions.json +++ b/pkgs/by-name/ng/ngrok/versions.json @@ -1,38 +1,38 @@ { "linux-386": { "sys": "linux-386", - "url": "https://bin.equinox.io/a/2pDJvg1WeN6/ngrok-v3-3.16.0-linux-386", - "sha256": "225ea2210a068f977a608352dd22fd20be619473cf3501df271c39c63905a521", - "version": "3.16.0" + "url": "https://bin.equinox.io/a/cPMgrL2ncCb/ngrok-v3-3.18.1-linux-386", + "sha256": "f0b85d6a2f7ab3bd48186100e0f619acd18d4bdf56df2cd7044e6b35745c17a4", + "version": "3.18.1" }, "linux-amd64": { "sys": "linux-amd64", - "url": "https://bin.equinox.io/a/kxzmCLDbo6M/ngrok-v3-3.16.0-linux-amd64", - "sha256": "fc1973917b056ac11d74687b0ba513a0fbab41f923e648875b8882d3e6cf07e0", - "version": "3.16.0" + "url": "https://bin.equinox.io/a/gnpHP5YLEsK/ngrok-v3-3.18.1-linux-amd64", + "sha256": "7d0a1f40bfb10fd7304081dcc27d7b8d2bed86f39cd46825c07679d8c888975f", + "version": "3.18.1" }, "linux-arm": { "sys": "linux-arm", - "url": "https://bin.equinox.io/a/iE6KPEx6SuX/ngrok-v3-3.16.0-linux-arm", - "sha256": "3cb21e33be918ad4e547db5f0401d0c6fea61876ae46c14daf39f1038f80a1af", - "version": "3.16.0" + "url": "https://bin.equinox.io/a/mke1muTU2zp/ngrok-v3-3.18.1-linux-arm", + "sha256": "6e7b4723a3a2c936157e4ec7be0bcbf95b49c672223ba0621d54165e8009fd78", + "version": "3.18.1" }, "linux-arm64": { "sys": "linux-arm64", - "url": "https://bin.equinox.io/a/3gbE6TuMrs4/ngrok-v3-3.16.0-linux-arm64", - "sha256": "e9cb9a3e65f92fa095101884291f9e5ed0989633cff480353a65877cf710399e", - "version": "3.16.0" + "url": "https://bin.equinox.io/a/jYPr353ESuj/ngrok-v3-3.18.1-linux-arm64", + "sha256": "0dbdfdf94b3acb777741e9eeeb27a256cb1975b7d366d1ba404804b863b8fcbb", + "version": "3.18.1" }, "darwin-amd64": { "sys": "darwin-amd64", - "url": "https://bin.equinox.io/a/aWAe4Kvgqei/ngrok-v3-3.16.0-darwin-amd64", - "sha256": "5c2fb13ab825876f183bcff82f98b0979f9f5250638a8cb88e5f987f2b109b6c", - "version": "3.16.0" + "url": "https://bin.equinox.io/a/iTdNrZisjJj/ngrok-v3-3.18.1-darwin-amd64", + "sha256": "9a1319caf566ee7f85c1a9b2982ee95c08bd549e90d56ac99ef863d5da92b4a4", + "version": "3.18.1" }, "darwin-arm64": { "sys": "darwin-arm64", - "url": "https://bin.equinox.io/a/4wpGQDJrfrm/ngrok-v3-3.16.0-darwin-arm64", - "sha256": "3fe7cc8f0d6b1978487c502cd6b832a1963287ad0f7c171904ac2c27d81bf9be", - "version": "3.16.0" + "url": "https://bin.equinox.io/a/6wGwyzYTbRX/ngrok-v3-3.18.1-darwin-arm64", + "sha256": "9cc3fee7d81157e6bc645f160f6aa5562577c4b9f72db8675143e16d07703816", + "version": "3.18.1" } } From c3576e0f80a1a018e9823cfe6997d5c9e4c47756 Mon Sep 17 00:00:00 2001 From: Bob van der Linden Date: Sat, 26 Oct 2024 16:50:08 +0200 Subject: [PATCH 2/2] ngrok: add version test --- pkgs/by-name/ng/ngrok/package.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ng/ngrok/package.nix b/pkgs/by-name/ng/ngrok/package.nix index bb47cd4d73671..a2f5fc51df92e 100644 --- a/pkgs/by-name/ng/ngrok/package.nix +++ b/pkgs/by-name/ng/ngrok/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + testers, }: let @@ -28,7 +29,7 @@ let inherit (versionInfo) version sha256 url; in -stdenv.mkDerivation { +stdenv.mkDerivation (finalAttrs: { pname = "ngrok"; inherit version; @@ -55,7 +56,10 @@ stdenv.mkDerivation { runHook postInstall ''; - passthru.updateScript = ./update.sh; + passthru = { + updateScript = ./update.sh; + tests.version = testers.testVersion { package = finalAttrs.finalPackage; }; + }; # Stripping causes SEGFAULT on darwin dontStrip = stdenv.hostPlatform.isDarwin; @@ -74,4 +78,4 @@ stdenv.mkDerivation { ]; mainProgram = "ngrok"; }; -} +})