587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
54 lines
961 B
Nix
54 lines
961 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, boost
|
|
, brotli
|
|
, bzip2
|
|
, bzip3
|
|
, lz4
|
|
, pcre2
|
|
, testers
|
|
, xz
|
|
, zlib
|
|
, zstd
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ugrep";
|
|
version = "5.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Genivia";
|
|
repo = "ugrep";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-9hxMxcqrq9uHCe3Ggyv3SdjWe+uTZ4ZuicDf9196Szo=";
|
|
};
|
|
|
|
buildInputs = [
|
|
boost
|
|
brotli
|
|
bzip2
|
|
bzip3
|
|
lz4
|
|
pcre2
|
|
xz
|
|
zlib
|
|
zstd
|
|
];
|
|
|
|
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";
|
|
};
|
|
})
|