summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/omake
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2016-11-27 10:13:13 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2016-12-02 19:49:07 +0000
commit895d3c890848aeed689aa29708430969ef3f35c6 (patch)
treee07ad4c86792f6e155532050d45590430bee37bd /pkgs/development/tools/ocaml/omake
parent96e1220813888f8870de6c3f323db4435f38e849 (diff)
downloadnixlib-895d3c890848aeed689aa29708430969ef3f35c6.tar
nixlib-895d3c890848aeed689aa29708430969ef3f35c6.tar.gz
nixlib-895d3c890848aeed689aa29708430969ef3f35c6.tar.bz2
nixlib-895d3c890848aeed689aa29708430969ef3f35c6.tar.lz
nixlib-895d3c890848aeed689aa29708430969ef3f35c6.tar.xz
nixlib-895d3c890848aeed689aa29708430969ef3f35c6.tar.zst
nixlib-895d3c890848aeed689aa29708430969ef3f35c6.zip
omake: 0.9.8.5 -> 0.10.1
Diffstat (limited to 'pkgs/development/tools/ocaml/omake')
-rw-r--r--pkgs/development/tools/ocaml/omake/default.nix42
-rw-r--r--pkgs/development/tools/ocaml/omake/omake-build-0.9.8.5.diff11
-rw-r--r--pkgs/development/tools/ocaml/omake/omake-lm_printf-gcc44.diff22
3 files changed, 14 insertions, 61 deletions
diff --git a/pkgs/development/tools/ocaml/omake/default.nix b/pkgs/development/tools/ocaml/omake/default.nix
index 451d025aa3c0..53152898fd6f 100644
--- a/pkgs/development/tools/ocaml/omake/default.nix
+++ b/pkgs/development/tools/ocaml/omake/default.nix
@@ -1,38 +1,24 @@
-{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
-let
-  pname = "omake";
-  version = "0.9.8.5-3";
-  webpage = "http://omake.metaprl.org";
-in
-stdenv.mkDerivation {
+{ stdenv, fetchurl, ocaml, ncurses }:
 
-  name = "${pname}-${version}";
+stdenv.mkDerivation rec {
+
+  name = "omake-${version}";
+  version = "0.10.1";
 
   src = fetchurl {
-    url = "mirror://debian/pool/main/o/omake/omake_${version}.orig.tar.gz";
-    sha256 = "1bfxbsimfivq0ar2g5fkzvr5ql97n5dg562pfyd29y4zyh4mwrsv";
+    url = "http://download.camlcity.org/download/${name}.tar.gz";
+    sha256 = "093ansbppms90hiqvzar2a46fj8gm9iwnf8gn38s6piyp70lrbsj";
   };
-  patchFlags = "-p0";
-  patches = [ ./omake-build-0.9.8.5.diff ./omake-lm_printf-gcc44.diff ];
-
-  buildInputs = [ ocaml makeWrapper ncurses ];
 
-  phases = "unpackPhase patchPhase buildPhase";
-  buildPhase = ''
-    make bootstrap
-    make PREFIX=$out all
-    make PREFIX=$out install
-  '';
-#  prefixKey = "-prefix ";
-#
-#  configureFlags = if transitional then "--transitional" else "--strict";
-#
-#  buildFlags = "world.opt";
+  buildInputs = [ ocaml ncurses ];
 
   meta = {
     description = "A build system designed for scalability and portability";
-    homepage = "${webpage}";
-    license = "GPL";
-    broken = true;
+    homepage = http://projects.camlcity.org/projects/omake.html;
+    license = with stdenv.lib.licenses; [
+      mit /* scripts */
+      gpl2 /* program */
+    ];
+    inherit (ocaml.meta) platforms;
   };
 }
diff --git a/pkgs/development/tools/ocaml/omake/omake-build-0.9.8.5.diff b/pkgs/development/tools/ocaml/omake/omake-build-0.9.8.5.diff
deleted file mode 100644
index b0a091e341cd..000000000000
--- a/pkgs/development/tools/ocaml/omake/omake-build-0.9.8.5.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/exec/omake_exec.ml	2006-12-08 23:52:01.000000000 +0100
-+++ src/exec/omake_exec.ml	2009-04-15 22:19:07.000000000 +0200
-@@ -46,7 +46,7 @@
- open Omake_options
- open Omake_command_type
-
--external sync : unit -> unit = "caml_sync"
-+(*external sync : unit -> unit = "caml_sync"*)
- 
- module Exec =
- struct
diff --git a/pkgs/development/tools/ocaml/omake/omake-lm_printf-gcc44.diff b/pkgs/development/tools/ocaml/omake/omake-lm_printf-gcc44.diff
deleted file mode 100644
index 03665340f5f9..000000000000
--- a/pkgs/development/tools/ocaml/omake/omake-lm_printf-gcc44.diff
+++ /dev/null
@@ -1,22 +0,0 @@
---- src/libmojave-external/cutil/lm_printf.c.orig	2007-07-15 19:55:23.000000000 +0200
-+++ src/libmojave-external/cutil/lm_printf.c		2009-06-21 19:20:40.000000000 +0200
-@@ -144,3 +144,3 @@
-         if(bufp != buffer)
--            free(buffer);
-+            free(bufp);
-         failwith("ml_print_string");
-@@ -149,3 +149,3 @@
-     if(bufp != buffer)
--        free(buffer);
-+        free(bufp);
-     return v_result;
-@@ -192,3 +192,3 @@
-         if(bufp != buffer)
--            free(buffer);
-+            free(bufp);
-         failwith("ml_print_string");
-@@ -197,3 +197,3 @@
-     if(bufp != buffer)
--        free(buffer);
-+        free(bufp);
-     return v_result;