Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #110912 from siraben/stdenv-lib-inherit

treewide: remove inherited stdenv.lib

authored by Sandro and committed by GitHub ad97ca4e 2ee93d61

+37 -52
+1 -2
pkgs/applications/editors/vim/macvim-configurable.nix
··· 1 - { stdenv, callPackage, vimUtils, buildEnv, makeWrapper }: 1 + { lib, stdenv, callPackage, vimUtils, buildEnv, makeWrapper }: 2 2 3 3 let 4 4 macvim = callPackage ./macvim.nix { inherit stdenv; }; ··· 12 12 # sourcing of the user's vimrc. Use `customRC = "source $HOME/.vim/vimrc"` 13 13 # if you want to preserve that behavior. 14 14 configure = let 15 - inherit (stdenv) lib; 16 15 doConfig = config: let 17 16 vimrcConfig = config // { 18 17 # always source the bundled system vimrc
+1 -3
pkgs/applications/gis/grass/default.nix
··· 1 - { stdenv, fetchFromGitHub, flex, bison, pkg-config, zlib, libtiff, libpng, fftw 1 + { lib, stdenv, fetchFromGitHub, flex, bison, pkg-config, zlib, libtiff, libpng, fftw 2 2 , cairo, readline, ffmpeg_3, makeWrapper, wxGTK30, netcdf, blas 3 3 , proj, gdal, geos, sqlite, postgresql, libmysqlclient, python2Packages, libLAS, proj-datumgrid 4 4 }: 5 - 6 - let inherit (stdenv) lib; in 7 5 8 6 stdenv.mkDerivation rec { 9 7 name = "grass";
+1 -1
pkgs/applications/misc/electrum/default.nix
··· 125 125 ''; 126 126 127 127 passthru.updateScript = import ./update.nix { 128 - inherit (stdenv) lib; 128 + inherit lib; 129 129 inherit 130 130 writeScript 131 131 common-updater-scripts
-1
pkgs/applications/networking/irc/quassel/default.nix
··· 20 20 }: 21 21 22 22 let 23 - inherit (stdenv) lib; 24 23 buildClient = monolithic || client; 25 24 buildCore = monolithic || enableDaemon; 26 25 in
+1 -3
pkgs/applications/networking/remote/citrix-workspace/generic.nix
··· 1 - { stdenv, requireFile, makeWrapper, autoPatchelfHook, wrapGAppsHook, which, more 1 + { lib, stdenv, requireFile, makeWrapper, autoPatchelfHook, wrapGAppsHook, which, more 2 2 , file, atk, alsaLib, cairo, fontconfig, gdk-pixbuf, glib, gnome3, gtk2-x11, gtk3 3 3 , heimdal, krb5, libsoup, libvorbis, speex, openssl, zlib, xorg, pango, gtk2 4 4 , gnome2, nss, nspr, gtk_engines, freetype, dconf, libpng12, libxml2 ··· 11 11 }: 12 12 13 13 let 14 - inherit (stdenv) lib; 15 - 16 14 openssl' = symlinkJoin { 17 15 name = "openssl-backwards-compat"; 18 16 nativeBuildInputs = [ makeWrapper ];
+2 -1
pkgs/applications/science/logic/coq/default.nix
··· 13 13 , csdp ? null 14 14 , version, coq-version ? null, 15 15 }@args: 16 - let lib = import ../../../../build-support/coq/extra-lib.nix {inherit (stdenv) lib;}; in 16 + let lib' = lib; in 17 + let lib = import ../../../../build-support/coq/extra-lib.nix {lib = lib';}; in 17 18 with builtins; with lib; 18 19 let 19 20 release = {
+1 -1
pkgs/applications/video/epgstation/default.nix
··· 91 91 # NOTE: this may take a while since it has to update all packages in 92 92 # nixpkgs.nodePackages 93 93 passthru.updateScript = import ./update.nix { 94 - inherit (stdenv) lib; 94 + inherit lib; 95 95 inherit (src.meta) homepage; 96 96 inherit 97 97 pname
+1 -1
pkgs/development/compilers/gcc/10/default.nix
··· 245 245 246 246 inherit 247 247 (import ../common/extra-target-flags.nix { 248 - inherit stdenv crossStageStatic libcCross threadsCross; 248 + inherit lib stdenv crossStageStatic libcCross threadsCross; 249 249 }) 250 250 EXTRA_FLAGS_FOR_TARGET 251 251 EXTRA_LDFLAGS_FOR_TARGET
+1 -1
pkgs/development/compilers/gcc/4.8/default.nix
··· 271 271 272 272 inherit 273 273 (import ../common/extra-target-flags.nix { 274 - inherit stdenv crossStageStatic libcCross threadsCross; 274 + inherit lib stdenv crossStageStatic libcCross threadsCross; 275 275 }) 276 276 EXTRA_FLAGS_FOR_TARGET 277 277 EXTRA_LDFLAGS_FOR_TARGET
+1 -1
pkgs/development/compilers/gcc/4.9/default.nix
··· 284 284 285 285 inherit 286 286 (import ../common/extra-target-flags.nix { 287 - inherit stdenv crossStageStatic libcCross threadsCross; 287 + inherit lib stdenv crossStageStatic libcCross threadsCross; 288 288 }) 289 289 EXTRA_FLAGS_FOR_TARGET 290 290 EXTRA_LDFLAGS_FOR_TARGET
+1 -1
pkgs/development/compilers/gcc/6/default.nix
··· 303 303 304 304 inherit 305 305 (import ../common/extra-target-flags.nix { 306 - inherit stdenv crossStageStatic libcCross threadsCross; 306 + inherit lib stdenv crossStageStatic libcCross threadsCross; 307 307 }) 308 308 EXTRA_FLAGS_FOR_TARGET 309 309 EXTRA_LDFLAGS_FOR_TARGET
+1 -1
pkgs/development/compilers/gcc/7/default.nix
··· 255 255 256 256 inherit 257 257 (import ../common/extra-target-flags.nix { 258 - inherit stdenv crossStageStatic libcCross threadsCross; 258 + inherit lib stdenv crossStageStatic libcCross threadsCross; 259 259 }) 260 260 EXTRA_FLAGS_FOR_TARGET 261 261 EXTRA_LDFLAGS_FOR_TARGET
+1 -1
pkgs/development/compilers/gcc/8/default.nix
··· 240 240 241 241 inherit 242 242 (import ../common/extra-target-flags.nix { 243 - inherit stdenv crossStageStatic libcCross threadsCross; 243 + inherit lib stdenv crossStageStatic libcCross threadsCross; 244 244 }) 245 245 EXTRA_FLAGS_FOR_TARGET 246 246 EXTRA_LDFLAGS_FOR_TARGET
+1 -1
pkgs/development/compilers/gcc/9/default.nix
··· 259 259 260 260 inherit 261 261 (import ../common/extra-target-flags.nix { 262 - inherit stdenv crossStageStatic langD libcCross threadsCross; 262 + inherit lib stdenv crossStageStatic langD libcCross threadsCross; 263 263 }) 264 264 EXTRA_FLAGS_FOR_TARGET 265 265 EXTRA_LDFLAGS_FOR_TARGET
+1 -2
pkgs/development/compilers/gcc/common/configure-flags.nix
··· 39 39 40 40 let 41 41 inherit (stdenv) 42 - buildPlatform hostPlatform targetPlatform 43 - lib; 42 + buildPlatform hostPlatform targetPlatform; 44 43 45 44 crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; 46 45 crossDarwin = targetPlatform != hostPlatform && targetPlatform.libc == "libSystem";
+2 -2
pkgs/development/compilers/gcc/common/extra-target-flags.nix
··· 1 - { stdenv, crossStageStatic, langD ? false, libcCross, threadsCross }: 1 + { lib, stdenv, crossStageStatic, langD ? false, libcCross, threadsCross }: 2 2 3 3 let 4 - inherit (stdenv) lib hostPlatform targetPlatform; 4 + inherit (stdenv) hostPlatform targetPlatform; 5 5 in 6 6 7 7 {
+1 -2
pkgs/development/libraries/gpgme/default.nix
··· 1 - { stdenv, fetchurl, fetchpatch 1 + { lib, stdenv, fetchurl, fetchpatch 2 2 , autoreconfHook, libgpgerror, gnupg, pkg-config, glib, pth, libassuan 3 3 , file, which, ncurses 4 4 , texinfo ··· 8 8 }: 9 9 10 10 let 11 - inherit (stdenv) lib; 12 11 inherit (stdenv.hostPlatform) system; 13 12 in 14 13
+1 -2
pkgs/development/libraries/libsnark/default.nix
··· 1 - { stdenv, fetchFromGitHub, cmake, pkg-config, openssl, boost, gmp, procps }: 1 + { lib, stdenv, fetchFromGitHub, cmake, pkg-config, openssl, boost, gmp, procps }: 2 2 3 3 let 4 4 rev = "9e6b19ff15bc19fba5da1707ba18e7f160e5ed07"; 5 - inherit (stdenv) lib; 6 5 in stdenv.mkDerivation rec { 7 6 name = "libsnark-pre${version}"; 8 7 version = lib.substring 0 8 rev;
+1 -1
pkgs/development/libraries/qt-5/5.12/default.nix
··· 124 124 # to avoid cyclic dependencies between Qt modules. 125 125 mkDerivation = 126 126 import ../mkDerivation.nix 127 - { inherit (stdenv) lib; inherit debug; wrapQtAppsHook = null; } 127 + { inherit lib; inherit debug; wrapQtAppsHook = null; } 128 128 stdenvActual.mkDerivation; 129 129 } 130 130 { inherit self srcs patches; };
+3 -3
pkgs/development/libraries/qt-5/5.14/default.nix
··· 123 123 import ../qtModule.nix 124 124 { 125 125 inherit perl; 126 - inherit (stdenv) lib; 126 + inherit lib; 127 127 # Use a variant of mkDerivation that does not include wrapQtApplications 128 128 # to avoid cyclic dependencies between Qt modules. 129 129 mkDerivation = 130 130 import ../mkDerivation.nix 131 - { inherit (stdenv) lib; inherit debug; wrapQtAppsHook = null; } 131 + { inherit lib; inherit debug; wrapQtAppsHook = null; } 132 132 stdenvActual.mkDerivation; 133 133 } 134 134 { inherit self srcs patches; }; ··· 140 140 141 141 mkDerivationWith = 142 142 import ../mkDerivation.nix 143 - { inherit (stdenv) lib; inherit debug; inherit (self) wrapQtAppsHook; }; 143 + { inherit lib; inherit debug; inherit (self) wrapQtAppsHook; }; 144 144 145 145 mkDerivation = mkDerivationWith stdenvActual.mkDerivation; 146 146
+3 -3
pkgs/development/libraries/qt-5/5.15/default.nix
··· 103 103 import ../qtModule.nix 104 104 { 105 105 inherit perl; 106 - inherit (stdenv) lib; 106 + inherit lib; 107 107 # Use a variant of mkDerivation that does not include wrapQtApplications 108 108 # to avoid cyclic dependencies between Qt modules. 109 109 mkDerivation = 110 110 import ../mkDerivation.nix 111 - { inherit (stdenv) lib; inherit debug; wrapQtAppsHook = null; } 111 + { inherit lib; inherit debug; wrapQtAppsHook = null; } 112 112 stdenvActual.mkDerivation; 113 113 } 114 114 { inherit self srcs patches; }; ··· 120 120 121 121 mkDerivationWith = 122 122 import ../mkDerivation.nix 123 - { inherit (stdenv) lib; inherit debug; inherit (self) wrapQtAppsHook; }; 123 + { inherit lib; inherit debug; inherit (self) wrapQtAppsHook; }; 124 124 125 125 mkDerivation = mkDerivationWith stdenvActual.mkDerivation; 126 126
+1 -2
pkgs/development/tools/profiling/systemtap/default.nix
··· 1 - { fetchgit, pkg-config, gettext, runCommand, makeWrapper 1 + { lib, fetchgit, pkg-config, gettext, runCommand, makeWrapper 2 2 , elfutils, kernel, gnumake, python2, python2Packages 3 3 }: 4 4 ··· 10 10 version = "4.1"; 11 11 12 12 inherit (kernel) stdenv; 13 - inherit (stdenv) lib; 14 13 15 14 ## stap binaries 16 15 stapBuild = stdenv.mkDerivation {
+1 -1
pkgs/development/web/nodejs/nodejs.nix
··· 132 132 133 133 passthru.updateScript = import ./update.nix { 134 134 inherit writeScript coreutils gnugrep jq curl common-updater-scripts gnupg nix runtimeShell; 135 - inherit (stdenv) lib; 135 + inherit lib; 136 136 inherit majorVersion; 137 137 }; 138 138
+1 -2
pkgs/games/ue4/default.nix
··· 1 - { stdenv, writeScript, fetchurl, requireFile, unzip, clang, mono, which, 1 + { lib, stdenv, writeScript, fetchurl, requireFile, unzip, clang, mono, which, 2 2 xorg, xdg-user-dirs }: 3 3 4 4 let 5 - inherit (stdenv) lib; 6 5 deps = import ./cdn-deps.nix { inherit fetchurl; }; 7 6 linkDeps = writeScript "link-deps.sh" (lib.concatMapStringsSep "\n" (hash: 8 7 let prefix = lib.concatStrings (lib.take 2 (lib.stringToCharacters hash));
-1
pkgs/servers/monitoring/prometheus/smokeping-prober.nix
··· 1 1 { lib, stdenv, buildGoModule, fetchFromGitHub, nixosTests }: 2 2 3 3 let 4 - inherit (stdenv) lib; 5 4 baseVersion = "0.3.1"; 6 5 commit = "9ba85274dcc21bf8132cbe3b3dccfcb4aab57d9f"; 7 6 in
+2 -2
pkgs/servers/x11/xorg/overrides.nix
··· 1 1 { abiCompat ? null, 2 - stdenv, makeWrapper, fetchurl, fetchpatch, fetchFromGitLab, buildPackages, 2 + lib, stdenv, makeWrapper, fetchurl, fetchpatch, fetchFromGitLab, buildPackages, 3 3 automake, autoconf, gettext, libiconv, libtool, intltool, 4 4 freetype, tradcpp, fontconfig, meson, ninja, ed, fontforge, 5 5 libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm, ··· 9 9 }: 10 10 11 11 let 12 - inherit (stdenv) lib isDarwin; 12 + inherit (stdenv) isDarwin; 13 13 inherit (lib) overrideDerivation; 14 14 15 15 malloc0ReturnsNullCrossFlag = lib.optional
+2 -2
pkgs/tools/graphics/wdisplays/default.nix
··· 1 - { stdenv, fetchFromGitHub, meson, ninja, pkg-config, gtk3, epoxy, wayland, wrapGAppsHook 1 + { lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, gtk3, epoxy, wayland, wrapGAppsHook 2 2 , fetchpatch 3 3 }: 4 4 ··· 26 26 }) 27 27 ]; 28 28 29 - meta = let inherit (stdenv) lib; in { 29 + meta = with lib; { 30 30 description = "A graphical application for configuring displays in Wayland compositors"; 31 31 homepage = "https://github.com/cyclopsian/wdisplays"; 32 32 maintainers = with lib.maintainers; [ lheckemann ma27 ];
-1
pkgs/tools/misc/byobu/default.nix
··· 3 3 , gettext, vim, bc, screen }: 4 4 5 5 let 6 - inherit (stdenv) lib; 7 6 pythonEnv = python3.withPackages (ps: with ps; [ snack ]); 8 7 in 9 8 stdenv.mkDerivation rec {
-1
pkgs/tools/misc/staruml/default.nix
··· 4 4 , libXdamage, expat }: 5 5 6 6 let 7 - inherit (stdenv) lib; 8 7 LD_LIBRARY_PATH = lib.makeLibraryPath 9 8 [ glib gtk2 gdk-pixbuf alsaLib nss nspr GConf cups libgcrypt dbus libXdamage expat ]; 10 9 in
+2 -3
pkgs/tools/misc/yubikey-manager-qt/default.nix
··· 1 - { stdenv 1 + { lib 2 + , stdenv 2 3 , fetchurl 3 4 , wrapQtAppsHook 4 5 , pcsclite ··· 15 16 , yubikey-manager 16 17 , yubikey-personalization 17 18 }: 18 - 19 - let inherit (stdenv) lib; in 20 19 21 20 stdenv.mkDerivation rec { 22 21 pname = "yubikey-manager-qt";
+1 -2
pkgs/tools/networking/s6-networking/default.nix
··· 1 - { stdenv, skawarePackages 1 + { lib, stdenv, skawarePackages 2 2 3 3 # Whether to build the TLS/SSL tools and what library to use 4 4 # acceptable values: "libressl", false ··· 8 8 9 9 with skawarePackages; 10 10 let 11 - inherit (stdenv) lib; 12 11 sslSupportEnabled = sslSupport != false; 13 12 sslLibs = { 14 13 libressl = libressl;
+1 -1
pkgs/tools/security/tor/default.nix
··· 73 73 passthru = { 74 74 tests.tor = nixosTests.tor; 75 75 updateScript = import ./update.nix { 76 - inherit (stdenv) lib; 76 + inherit lib; 77 77 inherit 78 78 writeScript 79 79 common-updater-scripts