summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorMatthew Maurer <maurer@matthewmaurer.org>2016-09-20 17:01:43 -0400
committerDaiderd Jordan <daiderd@gmail.com>2016-09-20 23:01:43 +0200
commit1cb54e39f0a8cf0eaccbbf9d5a849a3b7a4e04c8 (patch)
treeffb90f2630d2e6544194b31852536ad7e0093c10 /pkgs/development/ocaml-modules
parentd7d74a19229e1aaf44df0c0fbed90847f2b8c7de (diff)
downloadnixlib-1cb54e39f0a8cf0eaccbbf9d5a849a3b7a4e04c8.tar
nixlib-1cb54e39f0a8cf0eaccbbf9d5a849a3b7a4e04c8.tar.gz
nixlib-1cb54e39f0a8cf0eaccbbf9d5a849a3b7a4e04c8.tar.bz2
nixlib-1cb54e39f0a8cf0eaccbbf9d5a849a3b7a4e04c8.tar.lz
nixlib-1cb54e39f0a8cf0eaccbbf9d5a849a3b7a4e04c8.tar.xz
nixlib-1cb54e39f0a8cf0eaccbbf9d5a849a3b7a4e04c8.tar.zst
nixlib-1cb54e39f0a8cf0eaccbbf9d5a849a3b7a4e04c8.zip
Frontc: init at 3.4 (#18575)
ocamlPackages.frontc: init at 3.4
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/frontc/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/frontc/default.nix b/pkgs/development/ocaml-modules/frontc/default.nix
new file mode 100644
index 000000000000..ecf1ddc8fbae
--- /dev/null
+++ b/pkgs/development/ocaml-modules/frontc/default.nix
@@ -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";
+}