mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
38 lines
939 B
Nix
38 lines
939 B
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, piqi, stdlib-shims, num }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.7.8";
|
|
pname = "piqi-ocaml";
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alavrik";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-6Luq49sbo+AqLSq57mc6fLhrRx0K6G5LCUIzkGPfqYo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
buildInputs = [ piqi stdlib-shims ];
|
|
|
|
nativeCheckInputs = [ num ];
|
|
|
|
strictDeps = true;
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
DESTDIR=$out make install
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings";
|
|
homepage = "https://piqi.org";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.maurer ];
|
|
mainProgram = "piqic-ocaml";
|
|
};
|
|
}
|