pkgs/development/tools: stdenv.lib -> lib
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, ocaml, writeText }:
|
||||
{ lib, stdenv, fetchurl, ocaml, writeText }:
|
||||
|
||||
let
|
||||
pname = "camlidl";
|
||||
@@ -46,6 +46,6 @@ stdenv.mkDerivation rec {
|
||||
description = "A stub code generator and COM binding for Objective Caml";
|
||||
homepage = webpage;
|
||||
license = "LGPL";
|
||||
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
||||
maintainers = [ lib.maintainers.roconnor ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchzip, which, ocaml, ocamlbuild }:
|
||||
{ lib, stdenv, fetchzip, which, ocaml, ocamlbuild }:
|
||||
|
||||
if stdenv.lib.versionAtLeast ocaml.version "4.09"
|
||||
if lib.versionAtLeast ocaml.version "4.09"
|
||||
then throw "camlp4 is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
@@ -66,7 +66,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
dontStrip = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A software system for writing extensible parsers for programming languages";
|
||||
homepage = "https://github.com/ocaml/camlp4";
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchzip, ocaml, perl }:
|
||||
{ lib, stdenv, fetchzip, ocaml, perl }:
|
||||
|
||||
if stdenv.lib.versionOlder ocaml.version "4.02"
|
||||
if lib.versionOlder ocaml.version "4.02"
|
||||
then throw "camlp5 is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
@@ -26,7 +26,7 @@ stdenv.mkDerivation {
|
||||
|
||||
dontStrip = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Preprocessor-pretty-printer for OCaml";
|
||||
longDescription = ''
|
||||
Camlp5 is a preprocessor and pretty-printer for OCaml programs.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, fetchFromGitHub, ocaml, findlib, ocamlbuild
|
||||
{ lib, stdenv, fetchurl, fetchFromGitHub, ocaml, findlib, ocamlbuild
|
||||
, buildDunePackage
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "cppo";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "The C preprocessor for OCaml";
|
||||
longDescription = ''
|
||||
Cppo is an equivalent of the C preprocessor targeted at the OCaml language and its variants.
|
||||
@@ -17,7 +17,7 @@ let
|
||||
|
||||
in
|
||||
|
||||
if stdenv.lib.versionAtLeast ocaml.version "4.02" then
|
||||
if lib.versionAtLeast ocaml.version "4.02" then
|
||||
|
||||
buildDunePackage rec {
|
||||
inherit pname;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, ocaml, findlib }:
|
||||
{ lib, stdenv, fetchurl, ocaml, findlib }:
|
||||
|
||||
if stdenv.lib.versionOlder ocaml.version "4.08"
|
||||
if lib.versionOlder ocaml.version "4.08"
|
||||
then throw "dune is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
@@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
|
||||
homepage = "https://dune.build/";
|
||||
description = "A composable build system";
|
||||
changelog = "https://github.com/ocaml/dune/releases/tag/${version}";
|
||||
maintainers = [ stdenv.lib.maintainers.vbgl stdenv.lib.maintainers.marsam ];
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.vbgl lib.maintainers.marsam ];
|
||||
license = lib.licenses.mit;
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, fetchpatch, m4, ncurses, ocaml, writeText }:
|
||||
{ lib, stdenv, fetchurl, fetchpatch, m4, ncurses, ocaml, writeText }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml-findlib";
|
||||
@@ -49,11 +49,11 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = "http://projects.camlcity.org/projects/findlib.html";
|
||||
description = "O'Caml library manager";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
license = lib.licenses.mit;
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
maintainers = [
|
||||
stdenv.lib.maintainers.maggesi
|
||||
stdenv.lib.maintainers.vbmithr
|
||||
lib.maintainers.maggesi
|
||||
lib.maintainers.vbmithr
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ocamlmod, ocamlify }:
|
||||
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, ocamlmod, ocamlify }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
version = "0.4.10";
|
||||
@@ -22,7 +22,7 @@ stdenv.mkDerivation {
|
||||
buildPhase = "ocaml setup.ml -build";
|
||||
installPhase = "ocaml setup.ml -install";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "http://oasis.forge.ocamlcore.org/";
|
||||
description = "Configure, build and install system for OCaml projects";
|
||||
license = licenses.lgpl21;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchzip, ocaml }:
|
||||
{ lib, stdenv, fetchzip, ocaml }:
|
||||
|
||||
let version = "0.1.10"; in
|
||||
|
||||
@@ -27,7 +27,7 @@ stdenv.mkDerivation {
|
||||
homepage = "https://github.com/ocaml-obuild/obuild";
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
description = "Simple package build system for OCaml";
|
||||
license = stdenv.lib.licenses.lgpl21;
|
||||
maintainers = with stdenv.lib.maintainers; [ volth ];
|
||||
license = lib.licenses.lgpl21;
|
||||
maintainers = with lib.maintainers; [ volth ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, ocaml, findlib }:
|
||||
{ lib, stdenv, fetchFromGitHub, ocaml, findlib }:
|
||||
let
|
||||
version = "0.14.0";
|
||||
in
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation {
|
||||
"OCAMLBUILD_LIBDIR=$OCAMLFIND_DESTDIR"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ocaml/ocamlbuild/";
|
||||
description = "A build system with builtin rules to easily build most OCaml projects";
|
||||
license = licenses.lgpl2;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
|
||||
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocamlify-0.0.2";
|
||||
@@ -27,8 +27,8 @@ stdenv.mkDerivation {
|
||||
homepage = "https://forge.ocamlcore.org/projects/ocamlmod/ocamlmod";
|
||||
description = "Generate OCaml modules from source files";
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
license = stdenv.lib.licenses.lgpl21;
|
||||
maintainers = with stdenv.lib.maintainers; [
|
||||
license = lib.licenses.lgpl21;
|
||||
maintainers = with lib.maintainers; [
|
||||
maggesi
|
||||
];
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ounit }:
|
||||
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, ounit }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "ocamlmod";
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation {
|
||||
homepage = "https://forge.ocamlcore.org/projects/ocamlmod/ocamlmod";
|
||||
description = "Generate OCaml modules from source files";
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
maintainers = with stdenv.lib.maintainers; [
|
||||
maintainers = with lib.maintainers; [
|
||||
maggesi
|
||||
];
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, ocaml, findlib, ncurses, cmdliner, re }:
|
||||
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ncurses, cmdliner, re }:
|
||||
let
|
||||
version = "1.99.21";
|
||||
in
|
||||
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
|
||||
export configureFlags="$configureFlags --with-metadir=$OCAMLFIND_DESTDIR"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://www.typerex.org/ocp-build.html";
|
||||
description = "A build tool for OCaml";
|
||||
longDescription = ''
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchzip, ocamlPackages }:
|
||||
{ lib, stdenv, fetchzip, ocamlPackages }:
|
||||
|
||||
stdenv.mkDerivation rec
|
||||
{
|
||||
@@ -22,8 +22,8 @@ stdenv.mkDerivation rec
|
||||
meta = {
|
||||
homepage = "https://github.com/besport/ocsigen-i18n";
|
||||
description = "I18n made easy for web sites written with eliom";
|
||||
license = stdenv.lib.licenses.lgpl21;
|
||||
maintainers = [ stdenv.lib.maintainers.gal_bolle ];
|
||||
license = lib.licenses.lgpl21;
|
||||
maintainers = [ lib.maintainers.gal_bolle ];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
|
||||
{lib, stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
|
||||
let
|
||||
pname = "omake";
|
||||
version = "0.9.8.6-0.rc1";
|
||||
webpage = "http://omake.metaprl.org";
|
||||
in
|
||||
|
||||
if stdenv.lib.versionAtLeast ocaml.version "4.06"
|
||||
if lib.versionAtLeast ocaml.version "4.06"
|
||||
then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, ocaml, ncurses }:
|
||||
{ lib, stdenv, fetchurl, ocaml, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
description = "A build system designed for scalability and portability";
|
||||
homepage = "http://projects.camlcity.org/projects/omake.html";
|
||||
license = with stdenv.lib.licenses; [
|
||||
license = with lib.licenses; [
|
||||
mit /* scripts */
|
||||
gpl2 /* program */
|
||||
];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, ocamlPackages }:
|
||||
{ lib, stdenv, fetchFromGitHub, ocamlPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.3.2";
|
||||
@@ -19,8 +19,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
description = "OPAm Light INstaller Engine";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (ocamlPackages.ocaml.meta) platforms;
|
||||
};
|
||||
|
||||
@@ -82,7 +82,7 @@ in stdenv.mkDerivation {
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A package manager for OCaml";
|
||||
homepage = "http://opam.ocamlpro.com/";
|
||||
maintainers = [ maintainers.henrytill ];
|
||||
|
||||
@@ -110,7 +110,7 @@ in stdenv.mkDerivation {
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A package manager for OCaml";
|
||||
homepage = "https://opam.ocaml.org/";
|
||||
maintainers = [ maintainers.henrytill maintainers.marsam ];
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{ stdenv, fetchurl, ocaml, findlib
|
||||
{ lib, stdenv, fetchurl, ocaml, findlib
|
||||
, lambdaTerm, cppo, makeWrapper, buildDunePackage
|
||||
}:
|
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||
if !lib.versionAtLeast ocaml.version "4.03"
|
||||
then throw "utop is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
@@ -58,7 +58,7 @@ buildDunePackage rec {
|
||||
--prefix CAML_LD_LIBRARY_PATH ":" "${get "CAML_LD_LIBRARY_PATH"}" \
|
||||
--prefix OCAMLPATH ":" "${get "OCAMLPATH"}" \
|
||||
--prefix OCAMLPATH ":" $(unset OCAMLPATH; addOCamlPath "$out"; printf %s "$OCAMLPATH") \
|
||||
--add-flags "-I ${findlib}/lib/ocaml/${stdenv.lib.getVersion ocaml}/site-lib"
|
||||
--add-flags "-I ${findlib}/lib/ocaml/${lib.getVersion ocaml}/site-lib"
|
||||
done
|
||||
'';
|
||||
|
||||
@@ -70,10 +70,10 @@ buildDunePackage rec {
|
||||
It integrates with the tuareg mode in Emacs.
|
||||
'';
|
||||
homepage = "https://github.com/diml/utop";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
license = lib.licenses.bsd3;
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
maintainers = [
|
||||
stdenv.lib.maintainers.gal_bolle
|
||||
lib.maintainers.gal_bolle
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user