2022-11-09 10:55:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
}:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2023-04-16 20:52:47 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "byacc";
|
2024-01-11 04:19:38 +00:00
|
|
|
version = "20240109";
|
2008-08-06 20:39:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-04-16 20:52:47 +00:00
|
|
|
urls = [
|
|
|
|
"https://invisible-mirror.net/archives/byacc/byacc-${finalAttrs.version}.tgz"
|
|
|
|
"ftp://ftp.invisible-island.net/byacc/byacc-${finalAttrs.version}.tgz"
|
2017-03-22 22:29:12 +00:00
|
|
|
];
|
2024-01-11 04:19:38 +00:00
|
|
|
hash = "sha256-8ol3eQFxifGpR1dwXvb24V3JII7wee6n8oq+xXfghEY=";
|
2008-08-06 20:39:01 +00:00
|
|
|
};
|
|
|
|
|
2019-05-10 05:49:09 +00:00
|
|
|
configureFlags = [
|
2023-03-07 11:19:10 +00:00
|
|
|
# change yacc to byacc
|
2019-05-10 05:49:09 +00:00
|
|
|
"--program-transform-name='s,^,b,'"
|
|
|
|
];
|
|
|
|
|
2017-03-22 22:29:12 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2019-05-10 05:49:09 +00:00
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/byacc $out/bin/yacc
|
|
|
|
'';
|
|
|
|
|
2023-03-07 11:19:10 +00:00
|
|
|
meta = {
|
2020-04-05 11:44:28 +00:00
|
|
|
homepage = "https://invisible-island.net/byacc/byacc.html";
|
2022-11-09 10:55:07 +00:00
|
|
|
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";
|
2023-03-07 11:19:10 +00:00
|
|
|
license = lib.licenses.publicDomain;
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
2008-08-06 20:39:01 +00:00
|
|
|
};
|
2022-11-09 10:55:07 +00:00
|
|
|
})
|