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

This commit is contained in:
Ben Siraphob
2021-01-23 08:57:37 +07:00
parent bbaff89ceb
commit acc5f7b18a
320 changed files with 1660 additions and 1657 deletions
+5 -5
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;