pkgs/development/libraries: stdenv.lib -> lib
This commit is contained in:
committed by
Jonathan Ringer
parent
046d24424e
commit
66e44425c6
@@ -1,4 +1,4 @@
|
||||
{ stdenv, callPackage, fetchurl, fetchpatch, ... } @ args:
|
||||
{ lib, stdenv, callPackage, fetchurl, fetchpatch, ... } @ args:
|
||||
|
||||
callPackage ./generic.nix (args // {
|
||||
version = "1.67.0";
|
||||
@@ -9,7 +9,7 @@ callPackage ./generic.nix (args // {
|
||||
sha256 = "0x65nkwzv8fdacj8sw5njl3v63jj19dirrpklbwy6qpsncw7fc7h";
|
||||
stripLen = 1;
|
||||
})
|
||||
] ++ stdenv.lib.optionals stdenv.cc.isClang [
|
||||
] ++ lib.optionals stdenv.cc.isClang [
|
||||
# Fixes https://github.com/boostorg/atomic/issues/15
|
||||
(fetchpatch {
|
||||
url = "https://github.com/boostorg/atomic/commit/6e14ca24dab50ad4c1fa8c27c7dd6f1cb791b534.patch";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, icu, expat, zlib, bzip2, python, fixDarwinDylibNames, libiconv
|
||||
{ lib, stdenv, icu, expat, zlib, bzip2, python, fixDarwinDylibNames, libiconv
|
||||
, fetchpatch
|
||||
, which
|
||||
, buildPackages
|
||||
@@ -30,9 +30,9 @@ assert enablePython -> stdenv.hostPlatform == stdenv.buildPlatform;
|
||||
assert enableNumpy -> enablePython;
|
||||
|
||||
# Boost <1.69 can't be build with clang >8, because pth was removed
|
||||
assert with stdenv.lib; ((toolset == "clang" && !(versionOlder stdenv.cc.version "8.0.0")) -> !(versionOlder version "1.69"));
|
||||
assert with lib; ((toolset == "clang" && !(versionOlder stdenv.cc.version "8.0.0")) -> !(versionOlder version "1.69"));
|
||||
|
||||
with stdenv.lib;
|
||||
with lib;
|
||||
let
|
||||
|
||||
variant = concatStringsSep ","
|
||||
@@ -150,7 +150,7 @@ stdenv.mkDerivation {
|
||||
EOF
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_LINK = stdenv.lib.optionalString stdenv.isDarwin
|
||||
NIX_CFLAGS_LINK = lib.optionalString stdenv.isDarwin
|
||||
"-headerpad_max_install_names";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
Reference in New Issue
Block a user