mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
wireguard-go: use versionCheckHook
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchgit,
|
||||
testers,
|
||||
wireguard-go,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
@@ -46,10 +45,8 @@ buildGoModule (finalAttrs: {
|
||||
mv $out/bin/wireguard $out/bin/wireguard-go
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = wireguard-go;
|
||||
version = "v${finalAttrs.version}";
|
||||
};
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
doInstallCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Userspace Go implementation of WireGuard";
|
||||
|
||||
Reference in New Issue
Block a user