Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
838 B · 38 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline, withShared ? true, lib,}:
stdenv.mkDerivation rec { pname = "ocaml${ocaml.version}-uchar"; version = "0.0.2";
src = fetchurl { url = "https://github.com/ocaml/uchar/releases/download/v${version}/uchar-${version}.tbz"; sha256 = "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"; };
nativeBuildInputs = [ ocaml ocamlbuild findlib ];
strictDeps = true;
buildPhase = "ocaml pkg/build.ml native=true native-dynlink=${lib.boolToString withShared}"; installPhase = "${opaline}/bin/opaline -libdir $OCAMLFIND_DESTDIR"; configurePlatforms = [ ];
meta = { description = "Compatibility library for OCaml’s Uchar module"; inherit (ocaml.meta) platforms license; maintainers = [ lib.maintainers.vbgl ]; };}