agrep: drop (#474835)

This commit is contained in:
rewine
2025-12-28 16:41:57 +00:00
committed by GitHub
2 changed files with 1 additions and 67 deletions
-67
View File
@@ -1,67 +0,0 @@
{
lib,
fetchFromGitHub,
fetchpatch,
stdenv,
}:
let
# This repository has numbered versions, but not Git tags.
rev = "b7d180fe73636740f694ec60c1ffab52b06e7150";
in
stdenv.mkDerivation {
pname = "agrep";
version = "3.41.5-unstable-2022-03-23";
src = fetchFromGitHub {
inherit rev;
owner = "Wikinaut";
repo = "agrep";
hash = "sha256-2J4bw5BVZgTEcIn9IuD5Q8/L+8tldDbToDefuxDf85g=";
};
patches = [
# Implicit declaration of functions & implicit int
# https://github.com/Wikinaut/agrep/pull/31
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/Wikinaut/agrep/pull/31.patch";
hash = "sha256-9ik2RANq12T/1vCUYTBNomzw+aJVa/LU2RsZovu3r3E=";
})
];
postPatch = ''
# agrep only doesn't includes <sys/stat.h> for Linux
# Starting from gcc14, this is a compiler error
substituteInPlace checkfil.c recursiv.c \
--replace-fail '#ifdef __APPLE__
#include <sys/stat.h>
#endif' '#include <sys/stat.h>'
substituteInPlace newmgrep.c \
--replace-fail '#if defined(_WIN32) || defined(__APPLE__)
#include <sys/stat.h>
#endif' '#include <sys/stat.h>'
'';
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-std=c89";
installPhase = ''
runHook preInstall
install -Dm 555 agrep -t "$out/bin"
install -Dm 444 docs/* -t "$out/doc"
runHook postInstall
'';
meta = {
description = "Approximate grep for fast fuzzy string searching";
mainProgram = "agrep";
homepage = "https://www.tgries.de/agrep/";
maintainers = with lib.maintainers; [ momeemt ];
changelog = "https://github.com/Wikinaut/agrep/blob/${rev}/CHANGES";
license = lib.licenses.isc;
platforms = lib.platforms.unix;
};
}
+1
View File
@@ -274,6 +274,7 @@ mapAliases {
adminerneo = throw "'adminerneo' has been renamed to/replaced by 'adminneo'"; # Converted to throw 2025-10-27
adobe-reader = throw "'adobe-reader' has been removed, as it was broken, outdated and insecure"; # Added 2025-05-31
afpfs-ng = throw "'afpfs-ng' has been removed as it was broken and unmaintained for 10 years"; # Added 2025-05-17
agrep = throw "'agrep' has been removed due to lack of upstream maintenance. Consider using 'tre' or 'ugrep' instead."; # Added 2025-12-28
akkoma-emoji = throw "'akkoma-emoji' has been renamed to/replaced by 'blobs_gg'"; # Converted to throw 2025-10-27
akkoma-frontends.admin-fe = throw "'akkoma-frontends.admin-fe' has been renamed to/replaced by 'akkoma-admin-fe'"; # Converted to throw 2025-10-27
akkoma-frontends.akkoma-fe = throw "'akkoma-frontends.akkoma-fe' has been renamed to/replaced by 'akkoma-fe'"; # Converted to throw 2025-10-27