summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cil/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/cil/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/cil/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/cil/default.nix b/pkgs/development/ocaml-modules/cil/default.nix
new file mode 100644
index 00000000000..43522e180b6
--- /dev/null
+++ b/pkgs/development/ocaml-modules/cil/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchurl, perl, ocaml, findlib }:
+stdenv.mkDerivation {
+  name = "ocaml-cil-1.7.3";
+  src = fetchurl {
+    url = mirror://sourceforge/cil/cil-1.7.3.tar.gz;
+    sha256 = "05739da0b0msx6kmdavr3y2bwi92jbh3szc35d7d8pdisa8g5dv9";
+  };
+
+  buildInputs = [ perl ocaml findlib ];
+
+  createFindlibDestdir = true;
+
+  preConfigure = ''
+    export FORCE_PERL_PREFIX=1
+  '';
+  prefixKey = "-prefix=";
+
+  meta = with stdenv.lib; {
+    homepage = http://kerneis.github.io/cil/;
+    description = "A front-end for the C programming language that facilitates program analysis and transformation";
+    license = licenses.bsd3;
+    maintainers = [ maintainers.vbgl ];
+    platforms = ocaml.meta.platforms;
+  };
+}