Skip to content

Commit

Permalink
wstunnel: use versionCheckHook instead of testVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vdp committed Aug 21, 2024
1 parent e29d1bf commit c85887e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/by-name/ws/wstunnel/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
lib,
fetchFromGitHub,
rustPlatform,
testers,
wstunnel,
nixosTests,
nix-update-script,
versionCheckHook,
}:

let
Expand All @@ -25,6 +24,10 @@ rustPlatform.buildRustPackage {

cargoHash = "sha256-gNx01LHIcAbedO2X/OwwnQWd9d0Qc6ahe84IRUyptcY=";

nativeBuildInputs = [ versionCheckHook ];

doInstallCheck = true;

checkFlags = [
# Tries to launch a test container
"--skip=tcp::tests::test_proxy_connection"
Expand All @@ -34,7 +37,6 @@ rustPlatform.buildRustPackage {
passthru = {
updateScript = nix-update-script { };
tests = {
version = testers.testVersion { package = wstunnel; };
nixosTest = nixosTests.wstunnel;
};
};
Expand Down

0 comments on commit c85887e

Please sign in to comment.