···11-{
22- stdenv,
33- sgrep,
44- fetchurl,
55- runCommand,
66- lib,
77- m4,
88- makeWrapper,
99-}:
1010-1111-stdenv.mkDerivation rec {
1212- pname = "sgrep";
1313- version = "1.94a";
1414-1515- src = fetchurl {
1616- url = "https://www.cs.helsinki.fi/pub/Software/Local/Sgrep/sgrep-${version}.tar.gz";
1717- sha256 = "sha256-1bFkeOOrRHNeJCg9LYldLJyAE5yVIo3zvbKsRGOV+vk=";
1818- };
1919-2020- nativeBuildInputs = [ makeWrapper ];
2121-2222- postInstall = ''
2323- wrapProgram $out/bin/sgrep \
2424- --prefix PATH : ${lib.makeBinPath [ m4 ]}
2525- '';
2626-2727- passthru.tests.smokeTest = runCommand "test-sgrep" { } ''
2828- expr='"<foo>" __ "</foo>"'
2929- data="<foo>1</foo><bar>2</bar>"
3030- ${sgrep}/bin/sgrep "$expr" <<<$data >$out
3131- read result <$out
3232- [[ $result = 1 ]]
3333- '';
3434-3535- meta = with lib; {
3636- homepage = "https://www.cs.helsinki.fi/u/jjaakkol/sgrep.html";
3737- description = "Grep for structured text formats such as XML";
3838- mainProgram = "sgrep";
3939- longDescription = ''
4040- sgrep (structured grep) is a tool for searching and indexing text,
4141- SGML, XML and HTML files and filtering text streams using
4242- structural criteria.
4343- '';
4444- platforms = platforms.unix;
4545- license = licenses.gpl2Plus;
4646- maintainers = with maintainers; [ eigengrau ];
4747- };
4848-}
+1
pkgs/top-level/aliases.nix
···16871687 session-desktop-appimage = session-desktop;
16881688 sequoia = sequoia-sq; # Added 2023-06-26
16891689 sexp = sexpp; # Added 2023-07-03
16901690+ sgrep = throw "'sgrep' has been removed as it was unmaintained upstream since 1998 and broken with gcc 14"; # Added 2025-05-17
16901691 shallot = throw "'shallot' has been removed as it is broken and the upstream repository was removed. Consider using 'mkp224o'"; # Added 2025-03-16
16911692 inherit (libsForQt5.mauiPackages) shelf; # added 2022-05-17
16921693 shell-hist = throw "'shell-hist' has been removed due to lack of upstream maintenance"; # Added 2025-01-25