3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/parsing/byacc/default.nix
2021-06-22 16:57:20 -07:00

32 lines
703 B
Nix

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