parent
d7d74a1922
commit
1cb54e39f0
35
pkgs/development/ocaml-modules/frontc/default.nix
Normal file
35
pkgs/development/ocaml-modules/frontc/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{lib, buildOcaml, fetchurl}:
|
||||
|
||||
buildOcaml rec {
|
||||
name = "FrontC";
|
||||
version = "3.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.irit.fr/recherches/ARCHI/MARCH/frontc/Frontc-${version}.tgz";
|
||||
sha256 = "16dz153s92dgbw1rrfwbhscy73did87kfmjwyh3qpvs748h1sc4g";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://www.irit.fr/recherches/ARCHI/MARCH/rubrique.php3?id_rubrique=61;
|
||||
description = "C Parsing Library";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = [ maintainers.maurer ];
|
||||
};
|
||||
|
||||
meta_file = fetchurl {
|
||||
url = https://raw.githubusercontent.com/ocaml/opam-repository/0f0e610f6499bdf0151e4170411b4f05e4d076d4/packages/FrontC/FrontC.3.4/files/META;
|
||||
sha256 = "1flhvwr01crn7d094kby0418s1m4198np85ymjp3b4maz0n7m2mx";
|
||||
};
|
||||
|
||||
opam_patch = fetchurl {
|
||||
url = https://raw.githubusercontent.com/ocaml/opam-repository/0f0e610f6499bdf0151e4170411b4f05e4d076d4/packages/FrontC/FrontC.3.4/files/opam.patch;
|
||||
sha256 = "0xf83ixx0mf3mznwpwp2mjflii0njdzikhhfxpnms7vhnnmlfzy5";
|
||||
};
|
||||
|
||||
patches = [ opam_patch ];
|
||||
patchFlags = "-p4";
|
||||
|
||||
makeFlags = "PREFIX=$(out) OCAML_SITE=$(OCAMLFIND_DESTDIR)";
|
||||
|
||||
postInstall = "cp ${meta_file} $OCAMLFIND_DESTDIR/FrontC/META";
|
||||
}
|
@ -5322,6 +5322,8 @@ in
|
||||
|
||||
ocaml_expat = callPackage ../development/ocaml-modules/expat { };
|
||||
|
||||
frontc = callPackage ../development/ocaml-modules/frontc { };
|
||||
|
||||
ocamlfuse = callPackage ../development/ocaml-modules/ocamlfuse { };
|
||||
|
||||
ocamlgraph = callPackage ../development/ocaml-modules/ocamlgraph { };
|
||||
|
Loading…
Reference in New Issue
Block a user