nixpkgs/pkgs/development/ocaml-modules/uchar/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
807 B
Nix
Raw Normal View History

{ 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";
2021-11-09 19:53:19 +00:00
configurePlatforms = [ ];
meta = {
description = "Compatibility library for OCamls Uchar module";
inherit (ocaml.meta) platforms license;
maintainers = [ lib.maintainers.vbgl ];
};
}