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

28 lines
762 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, piqi, stdlib-shims }:
2015-06-10 22:00:52 +01:00
stdenv.mkDerivation rec {
version = "0.7.7";
pname = "piqi-ocaml";
name = "ocaml${ocaml.version}-${pname}-${version}";
2015-06-10 22:00:52 +01:00
src = fetchFromGitHub {
owner = "alavrik";
repo = pname;
rev = "v${version}";
sha256 = "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm";
2015-06-10 22:00:52 +01:00
};
buildInputs = [ ocaml findlib piqi stdlib-shims ];
2015-06-10 22:00:52 +01:00
createFindlibDestdir = true;
installPhase = "DESTDIR=$out make install";
meta = with 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 22:00:52 +01:00
license = licenses.asl20;
maintainers = [ maintainers.maurer ];
};
}