From b143a809ea1d6ef1a7deb0c3cef895256fc91171 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 17 Nov 2024 02:49:34 +0000 Subject: [PATCH] gping: 1.17.3 -> 1.18.0 --- pkgs/tools/networking/gping/default.nix | 31 ++++++++++++------------- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/pkgs/tools/networking/gping/default.nix b/pkgs/tools/networking/gping/default.nix index 5079ce509bb9..6611f99394a7 100644 --- a/pkgs/tools/networking/gping/default.nix +++ b/pkgs/tools/networking/gping/default.nix @@ -1,27 +1,25 @@ -{ lib -, stdenv -, rustPlatform -, fetchFromGitHub -, installShellFiles -, libiconv -, Security -, iputils +{ + lib, + stdenv, + rustPlatform, + fetchFromGitHub, + installShellFiles, + iputils, + versionCheckHook, }: rustPlatform.buildRustPackage rec { pname = "gping"; - version = "1.17.3"; + version = "1.18.0"; src = fetchFromGitHub { owner = "orf"; repo = "gping"; rev = "gping-v${version}"; - hash = "sha256-DJ+5WoizFF3K9drFc955bDMXnlW+okYrZos/+dRVtjw="; + hash = "sha256-JZMgbCwEGfngCQVmuZX1tu3he/f/TBLitcP/Ea3S6yI="; }; - cargoHash = "sha256-pQ95sS2dGVzZUOyuUpJPamW7RLiUTGu9KgpWLg4wn/w="; - - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv Security ]; + cargoHash = "sha256-I9rcC2sotrdHMCCiDgfycKRnJxZLuA5OLZPZC0zFiLc="; nativeBuildInputs = [ installShellFiles ]; @@ -32,9 +30,10 @@ rustPlatform.buildRustPackage rec { ''; doInstallCheck = true; - installCheckPhase = '' - $out/bin/gping --version | grep "${version}" - ''; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + versionCheckProgramArg = [ "--version" ]; meta = with lib; { description = "Ping, but with a graph"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index efa448c47cd0..c0b42e3e30d6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2446,9 +2446,7 @@ with pkgs; inherit (darwin) libobjc libresolv; }; - gping = callPackage ../tools/networking/gping { - inherit (darwin.apple_sdk.frameworks) Security; - }; + gping = callPackage ../tools/networking/gping { }; greg = callPackage ../applications/audio/greg { pythonPackages = python3Packages;