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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
934 B
Nix
Raw Normal View History

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