about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/http/default.nix
diff options
context:
space:
mode:
authorRussell O'Connor <roconnor@theorem.ca>2010-12-31 17:48:55 +0000
committerRussell O'Connor <roconnor@theorem.ca>2010-12-31 17:48:55 +0000
commit88ec92d14c400eee0164ace51e5b37e8bf035676 (patch)
treec7c5d538c20ed91252dbd1380da844b50d367697 /pkgs/development/ocaml-modules/http/default.nix
parentd3bb1b263001b3035f779ffcdb4588b7a8284eae (diff)
downloadnixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar
nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar.gz
nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar.bz2
nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar.lz
nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar.xz
nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.tar.zst
nixlib-88ec92d14c400eee0164ace51e5b37e8bf035676.zip
Matita and its dependencies.
svn path=/nixpkgs/trunk/; revision=25328
Diffstat (limited to 'pkgs/development/ocaml-modules/http/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/http/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/http/default.nix b/pkgs/development/ocaml-modules/http/default.nix
new file mode 100644
index 000000000000..46398d26114b
--- /dev/null
+++ b/pkgs/development/ocaml-modules/http/default.nix
@@ -0,0 +1,39 @@
+{stdenv, fetchurl, ocaml_pcre, ocamlnet, ocaml, findlib}:
+
+let
+  ocaml_version = (builtins.parseDrvName ocaml.name).version;
+  pname = "ocaml-http";
+  version = "0.1.3";
+in
+
+stdenv.mkDerivation {
+  name = "${pname}-${version}";
+
+  src = fetchurl {
+    url = "http://upsilon.cc/~zack/hacking/software/${pname}/${pname}-${version}.tar.gz";
+    sha256 = "070xw033r4pk6f4l0wcknm75y9qm4mp622a4cgzmcfhm58v6kssn";
+  };
+
+  buildInputs = [ocaml_pcre ocamlnet ocaml findlib];
+
+  createFindlibDestdir = true;
+
+  prePatch = ''
+    BASH=$(type -tp bash)
+    echo $BASH
+    substituteInPlace Makefile --replace "SHELL=/bin/bash" "SHELL=$BASH"
+  '';
+
+  configurePhase = "true";	# Skip configure phase
+
+  buildPhase = ''
+    make all opt
+  '';
+
+  meta = {
+    homepage = "http://upsilon.cc/~zack/hacking/software/ocaml-http/";
+    description = "do it yourself (OCaml) HTTP daemon";
+    license = "LGPLv2";
+    maintainers = [ stdenv.lib.maintainers.roconnor ];
+  };
+}