diff options
author | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2015-01-25 22:08:33 +0100 |
---|---|---|
committer | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2015-01-25 22:10:09 +0100 |
commit | be58ce4815dc40d94409b65e210425a24b3819c0 (patch) | |
tree | b0eb347095070d5589d3a70a1502878c042a0967 /pkgs/development/tools/ocaml | |
parent | 8408136da7bec07a17f8cf0760f9162df8041e4e (diff) |
google-drive-ocamlfuse: new expression
Diffstat (limited to 'pkgs/development/tools/ocaml')
-rw-r--r-- | pkgs/development/tools/ocaml/camlidl/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/development/tools/ocaml/camlidl/default.nix b/pkgs/development/tools/ocaml/camlidl/default.nix index d049377ea9494..dee605ced570d 100644 --- a/pkgs/development/tools/ocaml/camlidl/default.nix +++ b/pkgs/development/tools/ocaml/camlidl/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, makeWrapper, ocaml, ncurses}: +{stdenv, fetchurl, makeWrapper, gcc, ocaml, ncurses}: let ocaml_version = (builtins.parseDrvName ocaml.name).version; pname = "camlidl"; @@ -20,9 +20,22 @@ stdenv.mkDerivation { mv config/Makefile.unix config/Makefile substituteInPlace config/Makefile --replace BINDIR=/usr/local/bin BINDIR=$out substituteInPlace config/Makefile --replace OCAMLLIB=/usr/local/lib/ocaml OCAMLLIB=$out/lib/ocaml/${ocaml_version}/site-lib/camlidl + substituteInPlace config/Makefile --replace CPP=/lib/cpp CPP=${gcc}/bin/cpp mkdir -p $out/lib/ocaml/${ocaml_version}/site-lib/camlidl/caml ''; + postInstall = '' + cat >$out/lib/ocaml/${ocaml_version}/site-lib/camlidl/META <<EOF + # Courtesy of GODI + description = "Stub generator" + version = "${version}" + archive(byte) = "com.cma" + archive(native) = "com.cmxa" + EOF + mkdir -p $out/bin + ln -s $out/camlidl $out/bin + ''; + meta = { description = "CamlIDL is a stub code generator and COM binding for Objective Caml"; homepage = "${webpage}"; |