ngrok: add version test

This commit is contained in:
Bob van der Linden 2024-10-26 16:50:08 +02:00
parent 0c6d7d7255
commit c3576e0f80
No known key found for this signature in database

View File

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