2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2017-03-22 23:29:12 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "byacc-${version}";
|
2018-06-15 01:27:01 +02:00
|
|
|
version = "20180609";
|
2008-08-06 22:39:01 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-03-22 23:29:12 +01:00
|
|
|
urls = [
|
2018-01-02 19:15:48 +01:00
|
|
|
"ftp://ftp.invisible-island.net/byacc/${name}.tgz"
|
|
|
|
"https://invisible-mirror.net/archives/byacc/${name}.tgz"
|
2017-03-22 23:29:12 +01:00
|
|
|
];
|
2018-06-15 01:27:01 +02:00
|
|
|
sha256 = "173l9yai5yndbyn8nzdl6q11wv4x959bd0w392i82nfsqcz0pfsv";
|
2008-08-06 22:39:01 +02:00
|
|
|
};
|
|
|
|
|
2019-05-10 07:49:09 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--program-transform-name='s,^,b,'"
|
|
|
|
];
|
|
|
|
|
2017-03-22 23:29:12 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2019-05-10 07:49:09 +02:00
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/byacc $out/bin/yacc
|
|
|
|
'';
|
|
|
|
|
2017-03-22 23:29:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Berkeley YACC";
|
2019-04-15 01:25:45 +02:00
|
|
|
homepage = https://invisible-island.net/byacc/byacc.html;
|
2017-03-22 23:29:12 +01:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = platforms.unix;
|
2008-08-06 22:39:01 +02:00
|
|
|
};
|
|
|
|
}
|