nixpkgs-suyu/pkgs/development/ocaml-modules/piqi-ocaml/default.nix

28 lines
764 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, piqi, stdlib-shims }:
2015-06-10 23:00:52 +02:00
stdenv.mkDerivation rec {
version = "0.7.7";
pname = "piqi-ocaml";
name = "ocaml${ocaml.version}-${pname}-${version}";
2015-06-10 23:00:52 +02:00
src = fetchFromGitHub {
owner = "alavrik";
repo = pname;
rev = "v${version}";
sha256 = "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm";
2015-06-10 23:00:52 +02:00
};
buildInputs = [ ocaml findlib piqi stdlib-shims ];
2015-06-10 23:00:52 +02:00
createFindlibDestdir = true;
installPhase = "DESTDIR=$out make install";
meta = with stdenv.lib; {
homepage = "http://piqi.org";
description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings";
2015-06-10 23:00:52 +02:00
license = licenses.asl20;
maintainers = [ maintainers.maurer ];
};
}