diff --git a/pkgs/by-name/ag/agrep/package.nix b/pkgs/by-name/ag/agrep/package.nix deleted file mode 100644 index eab2450765a7..000000000000 --- a/pkgs/by-name/ag/agrep/package.nix +++ /dev/null @@ -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 for Linux - # Starting from gcc14, this is a compiler error - substituteInPlace checkfil.c recursiv.c \ - --replace-fail '#ifdef __APPLE__ - #include - #endif' '#include ' - - substituteInPlace newmgrep.c \ - --replace-fail '#if defined(_WIN32) || defined(__APPLE__) - #include - #endif' '#include ' - ''; - - 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; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index e1ba3cbab279..888110df1f1d 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -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