Skip to content

Commit

Permalink
ngrok: add version test
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvanderlinden committed Oct 26, 2024
1 parent 0c6d7d7 commit c3576e0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/by-name/ng/ngrok/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
testers,
}:

let
Expand All @@ -28,7 +29,7 @@ let
inherit (versionInfo) version sha256 url;

in
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "ngrok";
inherit version;

Expand All @@ -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;
Expand All @@ -74,4 +78,4 @@ stdenv.mkDerivation {
];
mainProgram = "ngrok";
};
}
})

0 comments on commit c3576e0

Please sign in to comment.