about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocamlmake
diff options
context:
space:
mode:
authorArie Middelkoop <amiddelk@gmail.com>2012-02-29 12:51:06 +0000
committerArie Middelkoop <amiddelk@gmail.com>2012-02-29 12:51:06 +0000
commitd9f5e277a5471f1c03d14dced75738b62d323b56 (patch)
treec5bbc67d4025b65999f61d6c8bfc1377f5baf84e /pkgs/development/ocaml-modules/ocamlmake
parentd4960f72bec068336819f3258fa67f1b1b4a6bd7 (diff)
downloadnixlib-d9f5e277a5471f1c03d14dced75738b62d323b56.tar
nixlib-d9f5e277a5471f1c03d14dced75738b62d323b56.tar.gz
nixlib-d9f5e277a5471f1c03d14dced75738b62d323b56.tar.bz2
nixlib-d9f5e277a5471f1c03d14dced75738b62d323b56.tar.lz
nixlib-d9f5e277a5471f1c03d14dced75738b62d323b56.tar.xz
nixlib-d9f5e277a5471f1c03d14dced75738b62d323b56.tar.zst
nixlib-d9f5e277a5471f1c03d14dced75738b62d323b56.zip
OCamlMakefile update.
svn path=/nixpkgs/trunk/; revision=32687
Diffstat (limited to 'pkgs/development/ocaml-modules/ocamlmake')
-rw-r--r--pkgs/development/ocaml-modules/ocamlmake/default.nix20
-rw-r--r--pkgs/development/ocaml-modules/ocamlmake/setup-hook.sh5
2 files changed, 19 insertions, 6 deletions
diff --git a/pkgs/development/ocaml-modules/ocamlmake/default.nix b/pkgs/development/ocaml-modules/ocamlmake/default.nix
index 69386bd75787..23858576efd5 100644
--- a/pkgs/development/ocaml-modules/ocamlmake/default.nix
+++ b/pkgs/development/ocaml-modules/ocamlmake/default.nix
@@ -1,16 +1,24 @@
 {stdenv, fetchurl}:
 
-stdenv.mkDerivation {
-  name = "ocaml-make-6.33.0";
+let
+
+  version = "6.36.0";
+  sha256 = "7c9a771d79bf945050dc7530957f4b61669976177818185e64c002cbfd75e3a2";
+
+in stdenv.mkDerivation {
+  name = "ocaml-make-${version}";
 
   src = fetchurl {
-    url = "http://www.ocaml.info/ocaml_sources/ocaml-make-6.33.0.tar.gz";
-    sha256 = "3054303ba04e4bbbe038e08310fabc3e5a0e3899bbba33d9ac5ed7a1b9d1e05a";
+    url = "http://hg.ocaml.info/release/ocaml-make/archive/release-${version}.tar.bz2";
+    inherit sha256;
   };
 
-  phases = [ "unpackPhase" "installPhase" ];
+  installPhase = ''
+    ensureDir "$out/include/"
+    cp OCamlMakefile "$out/include/"
+  '';
 
-  installPhase = "cp OCamlMakefile $out";
+  setupHook = ./setup-hook.sh;
 
   meta = {
     homepage = "http://www.ocaml.info/home/ocaml_sources.html";
diff --git a/pkgs/development/ocaml-modules/ocamlmake/setup-hook.sh b/pkgs/development/ocaml-modules/ocamlmake/setup-hook.sh
new file mode 100644
index 000000000000..876556a7b922
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ocamlmake/setup-hook.sh
@@ -0,0 +1,5 @@
+addOcamlMakefile () {
+    export OCAMLMAKEFILE="@out@/include/OCamlMakefile"
+}
+
+envHooks=(${envHooks[@]} addOcamlMakefile)