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
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, cmake
, python
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
#undef CLANG_REPOSITORY
'';
postUnpack = stdenv.lib.optionalString (!(isNull clang-tools-extra_src)) ''
postUnpack = lib.optionalString (!(isNull clang-tools-extra_src)) ''
ln -s ${clang-tools-extra_src} $sourceRoot/tools/extra
'';
@@ -56,7 +56,7 @@ stdenv.mkDerivation rec {
echo "$VCSVersion" > lib/Basic/VCSVersion.inc
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "ROCm fork of the clang C/C++/Objective-C/Objective-C++ LLVM compiler frontend";
homepage = "https://llvm.org/";
license = with licenses; [ ncsa ];
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, callPackage, wrapCCWith }:
{ lib, stdenv, fetchFromGitHub, callPackage, wrapCCWith }:
let
version = "4.0.0";
+2 -2
View File
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, cmake
, libxml2
, llvm
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
--replace "\''${_IMPORT_PREFIX}/bin/lld" "$out/bin/lld"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "ROCm fork of the LLVM Linker";
homepage = "https://github.com/RadeonOpenCompute/llvm-project";
license = licenses.ncsa;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, cmake
, python3
@@ -26,7 +26,7 @@ in stdenv.mkDerivation rec {
pname = "rocm-llvm";
outputs = [ "out" "python" ]
++ stdenv.lib.optional enableSharedLibraries "lib";
++ lib.optional enableSharedLibraries "lib";
nativeBuildInputs = [ cmake python3 ];
@@ -44,10 +44,10 @@ in stdenv.mkDerivation rec {
"-DLLVM_TARGETS_TO_BUILD=AMDGPU;${llvmNativeTarget}"
]
++
stdenv.lib.optional
lib.optional
enableSharedLibraries
"-DLLVM_LINK_LLVM_DYLIB=ON"
++ stdenv.lib.optionals enableManpages [
++ lib.optionals enableManpages [
"-DLLVM_BINUTILS_INCDIR=${libbfd.dev}/include"
"-DLLVM_BUILD_DOCS=ON"
"-DLLVM_ENABLE_SPHINX=ON"
@@ -78,7 +78,7 @@ in stdenv.mkDerivation rec {
postInstall = ''
moveToOutput share/opt-viewer "$python"
''
+ stdenv.lib.optionalString enableSharedLibraries ''
+ lib.optionalString enableSharedLibraries ''
moveToOutput "lib/libLLVM-*" "$lib"
moveToOutput "lib/libLLVM${stdenv.hostPlatform.extensions.sharedLibrary}" "$lib"
substituteInPlace "$out/lib/cmake/llvm/LLVMExports-${if debugVersion then "debug" else "release"}.cmake" \
@@ -87,7 +87,7 @@ in stdenv.mkDerivation rec {
passthru.src = src;
meta = with stdenv.lib; {
meta = with lib; {
description = "ROCm fork of the LLVM compiler infrastructure";
homepage = "https://github.com/RadeonOpenCompute/llvm-project";
license = with licenses; [ ncsa ];