pkgs/os-specific: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-17 23:26:08 +07:00
parent 979e6e67d3
commit 16d91ee628
212 changed files with 597 additions and 599 deletions
@@ -2,7 +2,7 @@
, zlib, bzip2, lzma, libgcrypt
}:
with stdenv.lib;
with lib;
stdenv.mkDerivation rec {
pname = "cygwin-setup";
+2 -2
View File
@@ -1,8 +1,8 @@
{ stdenv, buildPackages
{ lib, stdenv, buildPackages
, newScope, overrideCC, crossLibcStdenv, libcCross
}:
stdenv.lib.makeScope newScope (self: with self; {
lib.makeScope newScope (self: with self; {
cygwinSetup = callPackage ./cygwin-setup { };
+2 -2
View File
@@ -19,13 +19,13 @@ stdenv.mkDerivation {
# cmakeFlags = [ "-DWIN32=1" "-DCMAKE_SYSTEM_NAME=Windows" "-DCMAKE_RC_COMPILER=${stdenv.cc.targetPrefix}windres" ];
preBuild = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
preBuild = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
export NIX_CROSS_CFLAGS_COMPILE=-fpermissive
'';
meta = {
homepage = "http://qt-project.org/wiki/jom";
description = "Clone of nmake supporting multiple independent commands in parallel";
license = stdenv.lib.licenses.gpl2Plus; # Explicitly, GPLv2 or GPLv3, but not later.
license = lib.licenses.gpl2Plus; # Explicitly, GPLv2 or GPLv3, but not later.
};
}
@@ -11,6 +11,6 @@ in stdenv.mkDerivation rec {
};
meta = {
platforms = stdenv.lib.platforms.windows;
platforms = lib.platforms.windows;
};
}
@@ -25,6 +25,6 @@ in stdenv.mkDerivation {
hardeningDisable = [ "stackprotector" "fortify" ];
meta = {
platforms = stdenv.lib.platforms.windows;
platforms = lib.platforms.windows;
};
}
@@ -30,7 +30,7 @@ stdenv.mkDerivation {
passthru = {inherit compat24 compat26 unicode;};
meta = {
platforms = stdenv.lib.platforms.windows;
platforms = lib.platforms.windows;
broken = true;
};