git.iko.soy/typeable/nixpkgs
on master help sign in
piqi: init at 0.6.12
1d79d84Matthew Maurer
pkgs/development/ocaml-modules/piqi/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{stdenv, fetchurl, ocaml, findlib, camlp4, which, ulex, easy-format, ocaml_optcomp, xmlm, base64}:
2+
3+stdenv.mkDerivation rec {
4+ version = "0.6.12";
5+ name = "piqi-${version}";
6+
7+ src = fetchurl {
8+ url = "https://github.com/alavrik/piqi/archive/v${version}.tar.gz";
9+ sha256 = "1ifnawnblvibf5rgp6gr4f20266dckfrlryikg1iiq3dx2wfl7f8";
10+ };
11+
12+ buildInputs = [ocaml findlib camlp4 which ocaml_optcomp base64];
13+ propagatedBuildInputs = [ulex xmlm easy-format];
14+
15+ patches = [ ./no-ocamlpath-override.patch ];
16+
17+ createFindlibDestdir = true;
18+
19+ installPhase = ''
20+ make install;
21+ make ocaml-install;
22+ '';
23+
24+ meta = with stdenv.lib; {
25+ homepage = http://piqi.org;
26+ description = "Universal schema language and a collection of tools built around it.";
27+ license = licenses.asl20;
28+ maintainers = [ maintainers.maurer ];
29+ };
30+}
pkgs/development/ocaml-modules/piqi/no-ocamlpath-override.patchnew file+17
@@ -0,0 +1,17 @@
1+diff -rupN piqi-0.6.12.orig/make/Makefile.ocaml piqi-0.6.12/make/Makefile.ocaml
2+--- piqi-0.6.12.orig/make/Makefile.ocaml 2015-03-13 13:35:19.000000000 +0100
3++++ piqi-0.6.12/make/Makefile.ocaml 2015-06-10 21:19:57.231000000 +0200
4+@@ -1,13 +1,5 @@
5+ OCAMLMAKEFILE := $(PIQI_ROOT)/make/OCamlMakefile
6+
7+-
8+-OCAMLPATH := $(PIQI_BUILD)/lib/ocaml
9+-ifeq ($(SYSTEM),$(filter $(SYSTEM),mingw mingw64))
10+-OCAMLPATH := $(shell cygpath -w $(OCAMLPATH))
11+-endif
12+-export OCAMLPATH
13+-
14+-
15+ # make sure camlp4o produces pretty-printed text instead of AST
16+ export CAMLP4_O = $(CAMLP4)o -printer o
17+
pkgs/top-level/all-packages.nix+2
@@ -4478,6 +4478,8 @@ let
4478
4478
4479 ounit = callPackage ../development/ocaml-modules/ounit { };
4479 ounit = callPackage ../development/ocaml-modules/ounit { };
4480
4480
4481+ piqi = callPackage ../development/ocaml-modules/piqi { };
4482+
4481 re2 = callPackage ../development/ocaml-modules/re2 { };
4483 re2 = callPackage ../development/ocaml-modules/re2 { };
4482
4484
4483 tyxml = callPackage ../development/ocaml-modules/tyxml { };
4485 tyxml = callPackage ../development/ocaml-modules/tyxml { };