Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 25 lines 807 B view raw
1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline, withShared ? true, lib }: 2 3stdenv.mkDerivation rec { 4 pname = "ocaml${ocaml.version}-uchar"; 5 version = "0.0.2"; 6 7 src = fetchurl { 8 url = "https://github.com/ocaml/uchar/releases/download/v${version}/uchar-${version}.tbz"; 9 sha256 = "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"; 10 }; 11 12 nativeBuildInputs = [ ocaml ocamlbuild findlib ]; 13 14 strictDeps = true; 15 16 buildPhase = "ocaml pkg/build.ml native=true native-dynlink=${lib.boolToString withShared}"; 17 installPhase = "${opaline}/bin/opaline -libdir $OCAMLFIND_DESTDIR"; 18 configurePlatforms = [ ]; 19 20 meta = { 21 description = "Compatibility library for OCamls Uchar module"; 22 inherit (ocaml.meta) platforms license; 23 maintainers = [ lib.maintainers.vbgl ]; 24 }; 25}