Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 34 lines 770 B view raw
1{ lib, fetchFromGitHub, buildDunePackage, ocaml, cppo }: 2 3buildDunePackage rec { 4 pname = "camomile"; 5 version = "1.0.2"; 6 7 useDune2 = true; 8 9 src = fetchFromGitHub { 10 owner = "yoriyuki"; 11 repo = pname; 12 rev = version; 13 sha256 = "00i910qjv6bpk0nkafp5fg97isqas0bwjf7m6rz11rsxilpalzad"; 14 }; 15 16 nativeBuildInputs = [ cppo ]; 17 18 configurePhase = '' 19 runHook preConfigure 20 ocaml configure.ml --share $out/share/camomile 21 runHook postConfigure 22 ''; 23 24 postInstall = '' 25 echo "version = \"${version}\"" >> $out/lib/ocaml/${ocaml.version}/site-lib/camomile/META 26 ''; 27 28 meta = { 29 inherit (src.meta) homepage; 30 maintainers = [ lib.maintainers.vbgl ]; 31 license = lib.licenses.lgpl21; 32 description = "A Unicode library for OCaml"; 33 }; 34}