pkgs/tools: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-15 17:12:36 +07:00
parent 94f3683935
commit 8c5d37129f
916 changed files with 2510 additions and 2510 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
# TODO(@Ericson2314): Separate binaries and libraries
outputs = [ "bin" "out" "dev" ];
buildInputs = stdenv.lib.optional doCheck valgrind;
buildInputs = lib.optional doCheck valgrind;
enableParallelBuilding = true;
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
"WINDRES:=${stdenv.cc.bintools.targetPrefix}windres"
]
# TODO make full dictionary
++ stdenv.lib.optional stdenv.hostPlatform.isMinGW "TARGET_OS=MINGW"
++ lib.optional stdenv.hostPlatform.isMinGW "TARGET_OS=MINGW"
;
doCheck = false; # tests take a very long time
@@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
# TODO(@Ericson2314): Make resusable setup hook for this issue on Windows.
postInstall =
stdenv.lib.optionalString stdenv.hostPlatform.isWindows ''
lib.optionalString stdenv.hostPlatform.isWindows ''
mv $out/bin/*.dll $out/lib
ln -s $out/lib/*.dll
''