mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
4e42cac49d
This change was produced by searching for remaining occurrences of stdenv.lib and replacing them manually. Reference #108938.
23 lines
799 B
Nix
23 lines
799 B
Nix
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opaline, withShared ? true, lib }:
|
||
|
||
stdenv.mkDerivation {
|
||
name = "ocaml${ocaml.version}-uchar-0.0.2";
|
||
|
||
src = fetchurl {
|
||
url = "https://github.com/ocaml/uchar/releases/download/v0.0.2/uchar-0.0.2.tbz";
|
||
sha256 = "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7";
|
||
};
|
||
|
||
nativeBuildInputs = [ ocaml ocamlbuild findlib ];
|
||
buildInputs = [ findlib ocaml ocamlbuild ];
|
||
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 ];
|
||
};
|
||
}
|