3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/parsing/byacc/default.nix
2019-11-25 08:47:07 -08:00

32 lines
704 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "byacc";
version = "20191119";
src = fetchurl {
urls = [
"ftp://ftp.invisible-island.net/byacc/${pname}-${version}.tgz"
"https://invisible-mirror.net/archives/byacc/${pname}-${version}.tgz"
];
sha256 = "0ch8y9g7b3lnw1r76p65gvdnbpwd60d4pghgadid122fcq7566p2";
};
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;
};
}