mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
piqi: init at 0.6.12
This commit is contained in:
parent
90a4de0f1b
commit
1d79d840b1
30
pkgs/development/ocaml-modules/piqi/default.nix
Normal file
30
pkgs/development/ocaml-modules/piqi/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{stdenv, fetchurl, ocaml, findlib, camlp4, which, ulex, easy-format, ocaml_optcomp, xmlm, base64}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "0.6.12";
|
||||||
|
name = "piqi-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/alavrik/piqi/archive/v${version}.tar.gz";
|
||||||
|
sha256 = "1ifnawnblvibf5rgp6gr4f20266dckfrlryikg1iiq3dx2wfl7f8";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ocaml findlib camlp4 which ocaml_optcomp base64];
|
||||||
|
propagatedBuildInputs = [ulex xmlm easy-format];
|
||||||
|
|
||||||
|
patches = [ ./no-ocamlpath-override.patch ];
|
||||||
|
|
||||||
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
make install;
|
||||||
|
make ocaml-install;
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = http://piqi.org;
|
||||||
|
description = "Universal schema language and a collection of tools built around it.";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = [ maintainers.maurer ];
|
||||||
|
};
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
diff -rupN piqi-0.6.12.orig/make/Makefile.ocaml piqi-0.6.12/make/Makefile.ocaml
|
||||||
|
--- piqi-0.6.12.orig/make/Makefile.ocaml 2015-03-13 13:35:19.000000000 +0100
|
||||||
|
+++ piqi-0.6.12/make/Makefile.ocaml 2015-06-10 21:19:57.231000000 +0200
|
||||||
|
@@ -1,13 +1,5 @@
|
||||||
|
OCAMLMAKEFILE := $(PIQI_ROOT)/make/OCamlMakefile
|
||||||
|
|
||||||
|
-
|
||||||
|
-OCAMLPATH := $(PIQI_BUILD)/lib/ocaml
|
||||||
|
-ifeq ($(SYSTEM),$(filter $(SYSTEM),mingw mingw64))
|
||||||
|
-OCAMLPATH := $(shell cygpath -w $(OCAMLPATH))
|
||||||
|
-endif
|
||||||
|
-export OCAMLPATH
|
||||||
|
-
|
||||||
|
-
|
||||||
|
# make sure camlp4o produces pretty-printed text instead of AST
|
||||||
|
export CAMLP4_O = $(CAMLP4)o -printer o
|
||||||
|
|
@ -4478,6 +4478,8 @@ let
|
|||||||
|
|
||||||
ounit = callPackage ../development/ocaml-modules/ounit { };
|
ounit = callPackage ../development/ocaml-modules/ounit { };
|
||||||
|
|
||||||
|
piqi = callPackage ../development/ocaml-modules/piqi { };
|
||||||
|
|
||||||
re2 = callPackage ../development/ocaml-modules/re2 { };
|
re2 = callPackage ../development/ocaml-modules/re2 { };
|
||||||
|
|
||||||
tyxml = callPackage ../development/ocaml-modules/tyxml { };
|
tyxml = callPackage ../development/ocaml-modules/tyxml { };
|
||||||
|
Loading…
Reference in New Issue
Block a user