sgrep: drop

Fails to build with gcc 14 and unmaintained upstream since 1998 [1].

[1] https://www.cs.helsinki.fi/u/jjaakkol/sgrep.html
This commit is contained in:
Grimmauld 2025-05-17 16:32:24 +02:00
parent 2b547de72c
commit a160a4c3f9
No known key found for this signature in database
2 changed files with 1 additions and 48 deletions

View file

@ -1,48 +0,0 @@
{
stdenv,
sgrep,
fetchurl,
runCommand,
lib,
m4,
makeWrapper,
}:
stdenv.mkDerivation rec {
pname = "sgrep";
version = "1.94a";
src = fetchurl {
url = "https://www.cs.helsinki.fi/pub/Software/Local/Sgrep/sgrep-${version}.tar.gz";
sha256 = "sha256-1bFkeOOrRHNeJCg9LYldLJyAE5yVIo3zvbKsRGOV+vk=";
};
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/sgrep \
--prefix PATH : ${lib.makeBinPath [ m4 ]}
'';
passthru.tests.smokeTest = runCommand "test-sgrep" { } ''
expr='"<foo>" __ "</foo>"'
data="<foo>1</foo><bar>2</bar>"
${sgrep}/bin/sgrep "$expr" <<<$data >$out
read result <$out
[[ $result = 1 ]]
'';
meta = with lib; {
homepage = "https://www.cs.helsinki.fi/u/jjaakkol/sgrep.html";
description = "Grep for structured text formats such as XML";
mainProgram = "sgrep";
longDescription = ''
sgrep (structured grep) is a tool for searching and indexing text,
SGML, XML and HTML files and filtering text streams using
structural criteria.
'';
platforms = platforms.unix;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ eigengrau ];
};
}

View file

@ -1687,6 +1687,7 @@ mapAliases {
session-desktop-appimage = session-desktop;
sequoia = sequoia-sq; # Added 2023-06-26
sexp = sexpp; # Added 2023-07-03
sgrep = throw "'sgrep' has been removed as it was unmaintained upstream since 1998 and broken with gcc 14"; # Added 2025-05-17
shallot = throw "'shallot' has been removed as it is broken and the upstream repository was removed. Consider using 'mkp224o'"; # Added 2025-03-16
inherit (libsForQt5.mauiPackages) shelf; # added 2022-05-17
shell-hist = throw "'shell-hist' has been removed due to lack of upstream maintenance"; # Added 2025-01-25