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-12-18 09:25:03 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2016-12-18 09:51:00 +0000
commite76a1f0e7ea630b3f5f282d0dccdaecc272873ca (patch)
tree40184968353dccd965f35fde76d0986374d9b29c /pkgs/development/tools/ocaml/omake
parent508d9499b1e4a90602bf2d2cbc5c62f2aafd021f (diff)
downloadnixpkgs-e76a1f0e7ea630b3f5f282d0dccdaecc272873ca.tar
nixpkgs-e76a1f0e7ea630b3f5f282d0dccdaecc272873ca.tar.gz
nixpkgs-e76a1f0e7ea630b3f5f282d0dccdaecc272873ca.tar.bz2
nixpkgs-e76a1f0e7ea630b3f5f282d0dccdaecc272873ca.tar.lz
nixpkgs-e76a1f0e7ea630b3f5f282d0dccdaecc272873ca.tar.xz
nixpkgs-e76a1f0e7ea630b3f5f282d0dccdaecc272873ca.tar.zst
nixpkgs-e76a1f0e7ea630b3f5f282d0dccdaecc272873ca.zip
Revert "omake: remove 0.9.8.6-rc1"
This reverts commit e672fbc6f0e0dd503f78e0c23e6de1795bf81b8f.
Diffstat (limited to 'pkgs/development/tools/ocaml/omake')
-rw-r--r--pkgs/development/tools/ocaml/omake/0.9.8.6-rc1.nix38
-rw-r--r--pkgs/development/tools/ocaml/omake/warn.patch10
2 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/omake/0.9.8.6-rc1.nix b/pkgs/development/tools/ocaml/omake/0.9.8.6-rc1.nix
new file mode 100644
index 00000000000..9f318afc67d
--- /dev/null
+++ b/pkgs/development/tools/ocaml/omake/0.9.8.6-rc1.nix
@@ -0,0 +1,38 @@
+{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
+let
+  pname = "omake";
+  version = "0.9.8.6-0.rc1";
+  webpage = "http://omake.metaprl.org";
+in
+stdenv.mkDerivation {
+
+  name = "${pname}-${version}";
+
+  src = fetchurl {
+    url = "http://pkgs.fedoraproject.org/repo/pkgs/ocaml-omake/${pname}-${version}.tar.gz/fe39a476ef4e33b7ba2ca77a6bcaded2/${pname}-${version}.tar.gz";
+    sha256 = "1sas02pbj56m7wi5vf3vqrrpr4ynxymw2a8ybvfj2dkjf7q9ii13";
+  };
+  patchFlags = "-p0";
+  patches = [ ./warn.patch ];
+
+  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";		
+
+  meta = {
+    description = "Omake build system";
+    homepage = "${webpage}";
+    license = "GPL";
+    platforms = ocaml.meta.platforms or [];
+  };
+}
diff --git a/pkgs/development/tools/ocaml/omake/warn.patch b/pkgs/development/tools/ocaml/omake/warn.patch
new file mode 100644
index 00000000000..4459e89d7f9
--- /dev/null
+++ b/pkgs/development/tools/ocaml/omake/warn.patch
@@ -0,0 +1,10 @@
+diff -p1 -aur ../omake-0.9.8.6.ori/lib/build/OCaml.om ./lib/build/OCaml.om
+--- ../omake-0.9.8.6.ori/lib/build/OCaml.om	2008-03-05 01:07:25.000000000 +0000
++++ ./lib/build/OCaml.om	2013-06-01 15:52:37.000000000 +0000
+@@ -178,3 +178,3 @@ declare OCAMLDEPFLAGS
+ public.OCAMLPPFLAGS  =
+-public.OCAMLFLAGS    = -warn-error A
++public.OCAMLFLAGS    =
+ public.OCAMLCFLAGS   = -g
+Seulement dans ./lib/build: OCaml.om~
+Seulement dans .: warn.patch