depot/third_party/nixpkgs/pkgs/development/tools/parsing/byacc/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

31 lines
703 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "byacc";
version = "20220128";
src = fetchurl {
urls = [
"ftp://ftp.invisible-island.net/byacc/${pname}-${version}.tgz"
"https://invisible-mirror.net/archives/byacc/${pname}-${version}.tgz"
];
sha256 = "sha256-QsGAXMUpMU5qdjJv4bM+gMcIYqRLAUdNo2Li99stdJw=";
};
configureFlags = [
"--program-transform-name='s,^,b,'"
];
doCheck = true;
postInstall = ''
ln -s $out/bin/byacc $out/bin/yacc
'';
meta = with lib; {
description = "Berkeley YACC";
homepage = "https://invisible-island.net/byacc/byacc.html";
license = licenses.publicDomain;
platforms = platforms.unix;
};
}