Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildDunePackage, fetchFromGitHub, ocaml, menhir }:
2
3buildDunePackage rec {
4 pname = "FrontC";
5 version = "4.1.0";
6
7 src = fetchFromGitHub {
8 owner = "BinaryAnalysisPlatform";
9 repo = "FrontC";
10 rev = "v${version}";
11 sha256 = "1mi1vh4qgscnb470qwidccaqd068j1bqlz6pf6wddk21paliwnqb";
12 };
13
14 minimalOCamlVersion = "4.08";
15
16 nativeBuildInputs = [ menhir ];
17
18 meta = with lib; {
19 inherit (src.meta) homepage;
20 inherit (ocaml.meta) platforms;
21 description = "C Parsing Library";
22 license = licenses.lgpl21;
23 maintainers = [ maintainers.maurer ];
24 };
25}