1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/development/ocaml-modules/piqi-ocaml/default.nix

30 lines
902 B
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, ocaml, findlib, piqi, camlp4 }:
2015-06-10 22:00:52 +01:00
stdenv.mkDerivation rec {
2016-06-07 18:37:38 +01:00
version = "0.7.5";
pname = "piqi-ocaml";
2015-06-10 22:00:52 +01:00
src = fetchurl {
url = "https://github.com/alavrik/piqi-ocaml/archive/v${version}.tar.gz";
2016-06-07 18:37:38 +01:00
sha256 = "0ngz6y8i98i5v2ma8nk6mc83pdsmf2z0ks7m3xi6clfg3zqbddrv";
2015-06-10 22:00:52 +01:00
};
patches = [ (fetchpatch {
url = https://github.com/alavrik/piqi-ocaml/commit/336e8fdb84e77f4105e9bbb5ab545b8729101308.patch;
sha256 = "071s4xjyr6xx95v6az2lbl2igc87n7z5jqnnbhfq2pidrxakd0la";
})];
2017-01-25 07:06:38 +00:00
buildInputs = [ ocaml findlib piqi camlp4 ];
2015-06-10 22:00:52 +01: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 22:00:52 +01:00
license = licenses.asl20;
maintainers = [ maintainers.maurer ];
};
}