Files
nixpkgs/pkgs/by-name/by/byacc/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "byacc";
version = "20241231";
src = fetchurl {
urls = [
"https://invisible-mirror.net/archives/byacc/byacc-${finalAttrs.version}.tgz"
"ftp://ftp.invisible-island.net/byacc/byacc-${finalAttrs.version}.tgz"
];
hash = "sha256-GSwvrgSNTn9RS6RRYn+cTmEnZQmfgZwZGR+f3j5glnM=";
};
configureFlags = [
# change yacc to byacc
"--program-transform-name='s,^,b,'"
];
doCheck = true;
postInstall = ''
ln -s $out/bin/byacc $out/bin/yacc
'';
meta = {
homepage = "https://invisible-island.net/byacc/byacc.html";
description = "Berkeley YACC";
longDescription = ''
Berkeley Yacc (byacc) is generally conceded to be the best yacc variant
available. In contrast to bison, it is written to avoid dependencies upon
a particular compiler.
Byacc was written around 1990 by Robert Corbett who is the original author
of bison. Byacc is noted in Lex & Yacc by John Levine et al (O'Reilly,
1992) for its compatibility with the original yacc program.
Nowadays byacc is maintained by Thomas E. Dickey.
'';
changelog = "https://invisible-island.net/byacc/CHANGES.html";
license = lib.licenses.publicDomain;
maintainers = [ ];
platforms = lib.platforms.unix;
};
})