cloudflare-warp: add versionCheckHook
Preferred hook rather than passthru.tests.version here.
Especially this package is unfree and ofboard skips.
- https://github.com/NixOS/nixpkgs/pull/358956#discussion_r1871002548
- f42d4debf0
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user