nixpkgs-suyu/pkgs/development/ocaml-modules/camomile/default.nix
Ryan Burns 3a5fc1aad4 ocamlPackages.camomile: fix output dest dir
Add missing pre/post hooks - preConfigure is now required to set
correct ocaml dest dir as findlib sets a necessary preConfigure hook
2021-09-06 22:41:05 +09:00

30 lines
637 B
Nix

{ lib, fetchFromGitHub, buildDunePackage, cppo }:
buildDunePackage rec {
pname = "camomile";
version = "1.0.2";
useDune2 = true;
src = fetchFromGitHub {
owner = "yoriyuki";
repo = pname;
rev = version;
sha256 = "00i910qjv6bpk0nkafp5fg97isqas0bwjf7m6rz11rsxilpalzad";
};
buildInputs = [ cppo ];
configurePhase = ''
runHook preConfigure
ocaml configure.ml --share $out/share/camomile
runHook postConfigure
'';
meta = {
inherit (src.meta) homepage;
maintainers = [ lib.maintainers.vbgl ];
license = lib.licenses.lgpl21;
description = "A Unicode library for OCaml";
};
}