diff --git a/pkgs/by-name/cl/cloudflare-warp/package.nix b/pkgs/by-name/cl/cloudflare-warp/package.nix index cc629fb850a0..a20d7bf95ddc 100644 --- a/pkgs/by-name/cl/cloudflare-warp/package.nix +++ b/pkgs/by-name/cl/cloudflare-warp/package.nix @@ -2,6 +2,7 @@ stdenv, lib, autoPatchelfHook, + versionCheckHook, copyDesktopItems, dbus, dpkg, @@ -39,6 +40,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ dpkg autoPatchelfHook + versionCheckHook makeWrapper copyDesktopItems ]; @@ -99,6 +101,10 @@ stdenv.mkDerivation rec { wrapProgram $out/bin/warp-svc --prefix PATH : ${lib.makeBinPath [ nftables ]} ''; + doInstallCheck = true; + versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}"; + versionCheckProgramArg = [ "--version" ]; + meta = with lib; { description = "Replaces the connection between your device and the Internet with a modern, optimized, protocol"; homepage = "https://pkg.cloudflareclient.com/packages/cloudflare-warp";