From fafa1755825e99fcd86e95abbb9a5e868d13a019 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Sat, 30 Nov 2024 10:56:43 +0000 Subject: [PATCH] ugrep: 7.1.0 -> 7.1.1 Changes: https://github.com/Genivia/ugrep/releases/tag/v7.1.1 Co-authored-by: Samuel Tardieu --- pkgs/by-name/ug/ugrep/package.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ug/ugrep/package.nix b/pkgs/by-name/ug/ugrep/package.nix index 4adaa02aa623..5b1bce33d932 100644 --- a/pkgs/by-name/ug/ugrep/package.nix +++ b/pkgs/by-name/ug/ugrep/package.nix @@ -6,6 +6,7 @@ , bzip2 , bzip3 , lz4 +, makeWrapper , pcre2 , testers , xz @@ -15,15 +16,17 @@ stdenv.mkDerivation (finalAttrs: { pname = "ugrep"; - version = "7.1.0"; + version = "7.1.1"; src = fetchFromGitHub { owner = "Genivia"; repo = "ugrep"; rev = "v${finalAttrs.version}"; - hash = "sha256-H2c2PpdgjzPwR2aOFgQSLTeyxCBg4Ngibf0t1aT3xl8="; + hash = "sha256-l/AHt0OLI76AEOOziFXdfQdJlx6HqdFoEJ27YhwUJnQ="; }; + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ boost brotli @@ -36,6 +39,12 @@ stdenv.mkDerivation (finalAttrs: { zstd ]; + postFixup = '' + for i in ug+ ugrep+; do + wrapProgram "$out/bin/$i" --prefix PATH : "$out/bin" + done + ''; + passthru.tests = { version = testers.testVersion { package = finalAttrs.finalPackage;