mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
fafa175582
Changes: https://github.com/Genivia/ugrep/releases/tag/v7.1.1 Co-authored-by: Samuel Tardieu <sam@rfc1149.net>
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, boost
|
|
, brotli
|
|
, bzip2
|
|
, bzip3
|
|
, lz4
|
|
, makeWrapper
|
|
, pcre2
|
|
, testers
|
|
, xz
|
|
, zlib
|
|
, zstd
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ugrep";
|
|
version = "7.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Genivia";
|
|
repo = "ugrep";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-l/AHt0OLI76AEOOziFXdfQdJlx6HqdFoEJ27YhwUJnQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [
|
|
boost
|
|
brotli
|
|
bzip2
|
|
bzip3
|
|
lz4
|
|
pcre2
|
|
xz
|
|
zlib
|
|
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;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Ultra fast grep with interactive query UI";
|
|
homepage = "https://github.com/Genivia/ugrep";
|
|
changelog = "https://github.com/Genivia/ugrep/releases/tag/v${finalAttrs.version}";
|
|
maintainers = with maintainers; [ numkem mikaelfangel ];
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
mainProgram = "ug";
|
|
};
|
|
})
|