ocamlPackages: stdenv.lib → lib
This change was produced by searching for remaining occurrences of stdenv.lib and replacing them manually. Reference #108938.
This commit is contained in:
committed by
Profpatsch
parent
ff3057f61a
commit
4e42cac49d
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, ounit, qcheck
|
||||
{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild, ounit, qcheck
|
||||
# Optionally enable tests; test script use OCaml-4.01+ features
|
||||
, doCheck ? stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01"
|
||||
, doCheck ? lib.versionAtLeast (lib.getVersion ocaml) "4.01"
|
||||
}:
|
||||
|
||||
let version = "1.4.3"; in
|
||||
@@ -16,7 +16,7 @@ stdenv.mkDerivation {
|
||||
buildInputs = [ ocaml findlib ocamlbuild ounit qcheck ];
|
||||
|
||||
configurePhase = "ocaml setup.ml -configure --prefix $out"
|
||||
+ stdenv.lib.optionalString doCheck " --enable-tests";
|
||||
+ lib.optionalString doCheck " --enable-tests";
|
||||
buildPhase = "ocaml setup.ml -build";
|
||||
inherit doCheck;
|
||||
checkPhase = "ocaml setup.ml -test";
|
||||
@@ -28,7 +28,7 @@ stdenv.mkDerivation {
|
||||
homepage = "https://github.com/rgrinberg/stringext";
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
description = "Extra string functions for OCaml";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ vbgl ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user