2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2017-03-22 22:29:12 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "byacc";
|
2020-10-22 14:30:32 +01:00
|
|
|
version = "20200910";
|
2008-08-06 21:39:01 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-03-22 22:29:12 +00:00
|
|
|
urls = [
|
2019-08-15 13:41:18 +01:00
|
|
|
"ftp://ftp.invisible-island.net/byacc/${pname}-${version}.tgz"
|
|
|
|
"https://invisible-mirror.net/archives/byacc/${pname}-${version}.tgz"
|
2017-03-22 22:29:12 +00:00
|
|
|
];
|
2020-10-22 14:30:32 +01:00
|
|
|
sha256 = "0c6gbvlgzi6yflri22w7fa2w3k5m3jk0xb5a43f3vwpa783hcn8a";
|
2008-08-06 21:39:01 +01:00
|
|
|
};
|
|
|
|
|
2019-05-10 06:49:09 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--program-transform-name='s,^,b,'"
|
|
|
|
];
|
|
|
|
|
2017-03-22 22:29:12 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2019-05-10 06:49:09 +01:00
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/byacc $out/bin/yacc
|
|
|
|
'';
|
|
|
|
|
2017-03-22 22:29:12 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "Berkeley YACC";
|
2020-04-05 12:44:28 +01:00
|
|
|
homepage = "https://invisible-island.net/byacc/byacc.html";
|
2017-03-22 22:29:12 +00:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = platforms.unix;
|
2008-08-06 21:39:01 +01:00
|
|
|
};
|
|
|
|
}
|