nixpkgs/pkgs/development/tools/parsing/byacc/default.nix

32 lines
704 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "byacc";
2020-10-22 14:30:32 +01:00
version = "20200910";
src = fetchurl {
urls = [
"ftp://ftp.invisible-island.net/byacc/${pname}-${version}.tgz"
"https://invisible-mirror.net/archives/byacc/${pname}-${version}.tgz"
];
2020-10-22 14:30:32 +01:00
sha256 = "0c6gbvlgzi6yflri22w7fa2w3k5m3jk0xb5a43f3vwpa783hcn8a";
};
configureFlags = [
"--program-transform-name='s,^,b,'"
];
doCheck = true;
postInstall = ''
ln -s $out/bin/byacc $out/bin/yacc
'';
meta = with lib; {
description = "Berkeley YACC";
2020-04-05 12:44:28 +01:00
homepage = "https://invisible-island.net/byacc/byacc.html";
license = licenses.publicDomain;
platforms = platforms.unix;
};
}