8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
31 lines
706 B
Nix
31 lines
706 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "byacc";
|
|
version = "20200330";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"ftp://ftp.invisible-island.net/byacc/${pname}-${version}.tgz"
|
|
"https://invisible-mirror.net/archives/byacc/${pname}-${version}.tgz"
|
|
];
|
|
sha256 = "1c0zyn6v286i09jlc8gx6jyaa5438qyy985rqsd76kb8ibfy56g0";
|
|
};
|
|
|
|
configureFlags = [
|
|
"--program-transform-name='s,^,b,'"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/byacc $out/bin/yacc
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Berkeley YACC";
|
|
homepage = "https://invisible-island.net/byacc/byacc.html";
|
|
license = licenses.publicDomain;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|