pkgs/development: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-24 00:15:07 +07:00
parent ec334a1b01
commit 2f78ee7e81
121 changed files with 324 additions and 322 deletions

View File

@@ -1,8 +1,8 @@
{ qtModule, stdenv, qtbase, qtdeclarative, bluez }:
{ qtModule, lib, stdenv, qtbase, qtdeclarative, bluez }:
qtModule {
name = "qtconnectivity";
qtInputs = [ qtbase qtdeclarative ];
buildInputs = stdenv.lib.optional stdenv.isLinux bluez;
buildInputs = lib.optional stdenv.isLinux bluez;
outputs = [ "out" "dev" "bin" ];
}

View File

@@ -1,10 +1,10 @@
{ stdenv, qtModule, qtbase, qtmultimedia }:
{ lib, stdenv, qtModule, qtbase, qtmultimedia }:
qtModule {
name = "qtlocation";
qtInputs = [ qtbase qtmultimedia ];
outputs = [ "bin" "out" "dev" ];
qmakeFlags = stdenv.lib.optional stdenv.isDarwin [
qmakeFlags = lib.optional stdenv.isDarwin [
# boost uses std::auto_ptr which has been disabled in clang with libcxx
# This flag re-enables this feature
# https://libcxx.llvm.org/docs/UsingLibcxx.html#c-17-specific-configuration-macros

View File

@@ -1,9 +1,9 @@
{ stdenv, qtModule, qtbase }:
{ lib, stdenv, qtModule, qtbase }:
qtModule {
name = "qtmacextras";
qtInputs = [ qtbase ];
meta = with stdenv.lib; {
meta = with lib; {
maintainers = with maintainers; [ periklis ];
platforms = platforms.darwin;
};

View File

@@ -1,8 +1,8 @@
{ qtModule, stdenv, qtbase, qtdeclarative, pkg-config
{ qtModule, lib, stdenv, qtbase, qtdeclarative, pkg-config
, alsaLib, gstreamer, gst-plugins-base, libpulseaudio, wayland
}:
with stdenv.lib;
with lib;
qtModule {
name = "qtmultimedia";

View File

@@ -18,7 +18,7 @@
, lib, stdenv, fetchpatch
}:
with stdenv.lib;
with lib;
qtModule {
name = "qtwebengine";

View File

@@ -43,7 +43,7 @@ qtModule {
# QtWebKit overrides qmake's default_pre and default_post features,
# so its custom qmake files must be found first at the front of QMAKEPATH.
preConfigure = stdenv.lib.optionalString (!usingAnnulenWebkitFork) ''
preConfigure = lib.optionalString (!usingAnnulenWebkitFork) ''
QMAKEPATH="$PWD/Tools/qmake''${QMAKEPATH:+:}$QMAKEPATH"
fixQtBuiltinPaths . '*.pr?'
# Fix hydra's "Log limit exceeded"
@@ -72,6 +72,6 @@ qtModule {
preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" '';
meta = {
maintainers = with stdenv.lib.maintainers; [ abbradar periklis ];
maintainers = with lib.maintainers; [ abbradar periklis ];
};
}

View File

@@ -1,6 +1,6 @@
{ darwin, stdenv, qtModule, qtdeclarative, qtwebengine }:
{ darwin, lib, stdenv, qtModule, qtdeclarative, qtwebengine }:
with stdenv.lib;
with lib;
qtModule {
name = "qtwebview";