pkgs/development/compilers: stdenv.lib -> lib
This commit is contained in:
@@ -16,6 +16,6 @@ stdenv.mkDerivation rec {
|
||||
checkTarget = ["opt.opt"];
|
||||
|
||||
meta = {
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -26,9 +26,9 @@ stdenv.mkDerivation (rec {
|
||||
|
||||
meta = {
|
||||
homepage = "http://caml.inria.fr/ocaml";
|
||||
license = with stdenv.lib.licenses; [ qpl lgpl2 ];
|
||||
license = with lib.licenses; [ qpl lgpl2 ];
|
||||
description = "Most popular variant of the Caml language";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
|
||||
})
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
let
|
||||
useX11 = stdenv.isi686 || stdenv.isx86_64;
|
||||
useNativeCompilers = stdenv.isi686 || stdenv.isx86_64 || stdenv.isMips;
|
||||
inherit (stdenv.lib) optionals optionalString;
|
||||
inherit (lib) optionals optionalString;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
|
||||
ln -sv $out/lib/ocaml/caml $out/include/caml
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "http://caml.inria.fr/ocaml";
|
||||
license = with licenses; [
|
||||
qpl /* compiler */
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
let
|
||||
useX11 = !stdenv.isAarch32 && !stdenv.isMips;
|
||||
useNativeCompilers = !stdenv.isMips;
|
||||
inherit (stdenv.lib) optionals optionalString;
|
||||
inherit (lib) optionals optionalString;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
|
||||
nativeCompilers = useNativeCompilers;
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "http://caml.inria.fr/ocaml";
|
||||
branch = "3.12";
|
||||
license = with licenses; [
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{ stdenv, fetchurl, ncurses, xlibsWrapper }:
|
||||
{ lib, stdenv, fetchurl, ncurses, xlibsWrapper }:
|
||||
|
||||
let
|
||||
useX11 = !stdenv.isAarch32 && !stdenv.isMips;
|
||||
useNativeCompilers = !stdenv.isMips;
|
||||
inherit (stdenv.lib) optional optionals optionalString;
|
||||
inherit (lib) optional optionals optionalString;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
||||
nativeCompilers = useNativeCompilers;
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "http://caml.inria.fr/ocaml";
|
||||
branch = "4.00";
|
||||
license = with licenses; [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl
|
||||
{ lib, stdenv, fetchurl
|
||||
, ncurses
|
||||
, libX11, xorgproto, buildEnv
|
||||
}:
|
||||
@@ -6,7 +6,7 @@
|
||||
let
|
||||
useX11 = stdenv.isi686 || stdenv.isx86_64;
|
||||
x11deps = [ libX11 xorgproto ];
|
||||
inherit (stdenv.lib) optionals;
|
||||
inherit (lib) optionals;
|
||||
|
||||
baseOcamlBranch = "4.07";
|
||||
baseOcamlVersion = "${baseOcamlBranch}.1";
|
||||
@@ -78,7 +78,7 @@ stdenv.mkDerivation rec {
|
||||
nativeCompilers = true;
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Multi-Stage Programming extension for OCaml";
|
||||
homepage = "http://okmij.org/ftp/ML/MetaOCaml.html";
|
||||
license = with licenses; [ /* compiler */ qpl /* library */ lgpl2 ];
|
||||
|
||||
@@ -6,17 +6,17 @@ let
|
||||
safeX11 = stdenv: !(stdenv.isAarch32 || stdenv.isMips);
|
||||
in
|
||||
|
||||
{ stdenv, fetchurl, ncurses, buildEnv, libunwind
|
||||
, libX11, xorgproto, useX11 ? safeX11 stdenv && !stdenv.lib.versionAtLeast version "4.09"
|
||||
{ lib, stdenv, fetchurl, ncurses, buildEnv, libunwind
|
||||
, libX11, xorgproto, useX11 ? safeX11 stdenv && !lib.versionAtLeast version "4.09"
|
||||
, aflSupport ? false
|
||||
, flambdaSupport ? false
|
||||
, spaceTimeSupport ? false
|
||||
}:
|
||||
|
||||
assert useX11 -> !stdenv.isAarch32 && !stdenv.isMips;
|
||||
assert aflSupport -> stdenv.lib.versionAtLeast version "4.05";
|
||||
assert flambdaSupport -> stdenv.lib.versionAtLeast version "4.03";
|
||||
assert spaceTimeSupport -> stdenv.lib.versionAtLeast version "4.04";
|
||||
assert aflSupport -> lib.versionAtLeast version "4.05";
|
||||
assert flambdaSupport -> lib.versionAtLeast version "4.03";
|
||||
assert spaceTimeSupport -> lib.versionAtLeast version "4.04";
|
||||
|
||||
let
|
||||
src = args.src or (fetchurl {
|
||||
@@ -27,7 +27,7 @@ in
|
||||
|
||||
let
|
||||
useNativeCompilers = !stdenv.isMips;
|
||||
inherit (stdenv.lib) optional optionals optionalString;
|
||||
inherit (lib) optional optionals optionalString;
|
||||
name = "ocaml${optionalString aflSupport "+afl"}${optionalString spaceTimeSupport "+spacetime"}${optionalString flambdaSupport "+flambda"}-${version}";
|
||||
in
|
||||
|
||||
@@ -47,7 +47,7 @@ stdenv.mkDerivation (args // {
|
||||
prefixKey = "-prefix ";
|
||||
configureFlags =
|
||||
let flags = new: old:
|
||||
if stdenv.lib.versionAtLeast version "4.08"
|
||||
if lib.versionAtLeast version "4.08"
|
||||
then new else old
|
||||
; in
|
||||
optionals useX11 (flags
|
||||
@@ -59,11 +59,11 @@ stdenv.mkDerivation (args // {
|
||||
;
|
||||
|
||||
buildFlags = [ "world" ] ++ optionals useNativeCompilers [ "bootstrap" "world.opt" ];
|
||||
buildInputs = optional (!stdenv.lib.versionAtLeast version "4.07") ncurses
|
||||
buildInputs = optional (!lib.versionAtLeast version "4.07") ncurses
|
||||
++ optionals useX11 [ libX11 xorgproto ];
|
||||
propagatedBuildInputs = optional spaceTimeSupport libunwind;
|
||||
installTargets = [ "install" ] ++ optional useNativeCompilers "installopt";
|
||||
preConfigure = optionalString (!stdenv.lib.versionAtLeast version "4.04") ''
|
||||
preConfigure = optionalString (!lib.versionAtLeast version "4.04") ''
|
||||
CAT=$(type -tp cat)
|
||||
sed -e "s@/bin/cat@$CAT@" -i config/auto-aux/sharpbang
|
||||
'';
|
||||
@@ -76,7 +76,7 @@ stdenv.mkDerivation (args // {
|
||||
nativeCompilers = useNativeCompilers;
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "http://caml.inria.fr/ocaml";
|
||||
branch = versionNoPatch;
|
||||
license = with licenses; [
|
||||
@@ -105,7 +105,7 @@ stdenv.mkDerivation (args // {
|
||||
'';
|
||||
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
broken = stdenv.isAarch64 && !stdenv.lib.versionAtLeast version "4.06";
|
||||
broken = stdenv.isAarch64 && !lib.versionAtLeast version "4.06";
|
||||
};
|
||||
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, xlibsWrapper, ncurses }:
|
||||
{ lib, stdenv, fetchurl, xlibsWrapper, ncurses }:
|
||||
|
||||
stdenv.mkDerivation ({
|
||||
|
||||
@@ -26,7 +26,7 @@ stdenv.mkDerivation ({
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.metaocaml.org/";
|
||||
license = with stdenv.lib.licenses; [ qpl lgpl2 ];
|
||||
license = with lib.licenses; [ qpl lgpl2 ];
|
||||
description = "A compiled, type-safe, multi-stage programming language";
|
||||
broken = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user