pkgs/development/compilers: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-22 18:25:31 +07:00
parent bbaff89ceb
commit acc5f7b18a
320 changed files with 1660 additions and 1657 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, bison, pkg-config, glib, gettext, perl, libgdiplus, libX11, callPackage, ncurses, zlib, withLLVM ? false, cacert, Foundation, libobjc, python3, version, sha256, autoconf, libtool, automake, cmake, which
{ lib, stdenv, fetchurl, bison, pkg-config, glib, gettext, perl, libgdiplus, libX11, callPackage, ncurses, zlib, withLLVM ? false, cacert, Foundation, libobjc, python3, version, sha256, autoconf, libtool, automake, cmake, which
, gnumake42
, enableParallelBuilding ? true
, srcArchiveSuffix ? "tar.bz2"
@@ -21,14 +21,14 @@ stdenv.mkDerivation rec {
buildInputs =
[ glib gettext perl libgdiplus libX11 ncurses zlib python3 autoconf libtool
]
++ (stdenv.lib.optionals stdenv.isDarwin [ Foundation libobjc ]);
++ (lib.optionals stdenv.isDarwin [ Foundation libobjc ]);
configureFlags = [
"--x-includes=${libX11.dev}/include"
"--x-libraries=${libX11.out}/lib"
"--with-libgdiplus=${libgdiplus}/lib/libgdiplus.so"
]
++ stdenv.lib.optionals withLLVM [
++ lib.optionals withLLVM [
"--enable-llvm"
"--with-llvm=${llvm}"
];
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
preBuild = ''
makeFlagsArray=(INSTALL=`type -tp install`)
substituteInPlace mcs/class/corlib/System/Environment.cs --replace /usr/share "$out/share"
'' + stdenv.lib.optionalString withLLVM ''
'' + lib.optionalString withLLVM ''
substituteInPlace mono/mini/aot-compiler.c --replace "llvm_path = g_strdup (\"\")" "llvm_path = g_strdup (\"${llvm}/bin/\")"
'';
@@ -75,7 +75,7 @@ stdenv.mkDerivation rec {
inherit enableParallelBuilding;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://mono-project.com/";
description = "Cross platform, open source .NET development framework";
platforms = with platforms; darwin ++ linux;

View File

@@ -39,13 +39,13 @@ stdenv.mkDerivation {
cmakeFlags = with stdenv; [
"-DLLVM_ENABLE_FFI=ON"
"-DLLVM_BINUTILS_INCDIR=${libbfd.dev}/include"
] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON";
] ++ lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON";
meta = {
description = "Collection of modular and reusable compiler and toolchain technologies - Mono build";
homepage = "http://llvm.org/";
license = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ thoughtpolice ];
platforms = stdenv.lib.platforms.all;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ thoughtpolice ];
platforms = lib.platforms.all;
};
}