01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
34 lines
913 B
Nix
34 lines
913 B
Nix
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, which, sedlex, easy-format, xmlm, base64 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.6.16";
|
|
pname = "piqi";
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alavrik";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-qE+yybTn+kzbY0h8udhZYO+GwQPI/J/6p3LMmF12cFU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ ocaml findlib which ];
|
|
propagatedBuildInputs = [ sedlex xmlm easy-format base64 ];
|
|
|
|
strictDeps = true;
|
|
|
|
patches = [ ./no-ocamlpath-override.patch ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
postBuild = "make -C piqilib piqilib.cma";
|
|
|
|
installTargets = [ "install" "ocaml-install" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://piqi.org";
|
|
description = "Universal schema language and a collection of tools built around it";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.maurer ];
|
|
};
|
|
}
|