diff options
author | taku0 <mxxouy6x3m_github@tatapa.org> | 2022-01-15 16:06:53 +0900 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2022-01-20 09:19:19 -0800 |
commit | 7ab79bff9f100aa73c82def7bfdd3d8aa4771cde (patch) | |
tree | c8b9cace02d3dfe19d54e65f0d57df17e2aa82d5 /pkgs/development/libraries/openssl | |
parent | 4a7fa6456d7a7147f9314aaca4203ce6b1e2977f (diff) | |
download | nixpkgs-7ab79bff9f100aa73c82def7bfdd3d8aa4771cde.tar nixpkgs-7ab79bff9f100aa73c82def7bfdd3d8aa4771cde.tar.gz nixpkgs-7ab79bff9f100aa73c82def7bfdd3d8aa4771cde.tar.bz2 nixpkgs-7ab79bff9f100aa73c82def7bfdd3d8aa4771cde.tar.lz nixpkgs-7ab79bff9f100aa73c82def7bfdd3d8aa4771cde.tar.xz nixpkgs-7ab79bff9f100aa73c82def7bfdd3d8aa4771cde.tar.zst nixpkgs-7ab79bff9f100aa73c82def7bfdd3d8aa4771cde.zip |
openssl: remove `with lib`
See https://github.com/NixOS/nixpkgs/pull/150733/files#r785279764
Diffstat (limited to 'pkgs/development/libraries/openssl')
-rw-r--r-- | pkgs/development/libraries/openssl/default.nix | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 96b91dc7b60..bbf5bd9aa16 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -19,8 +19,6 @@ assert ( # cgit) that are needed here should be included directly in Nixpkgs as # files. -with lib; - let common = { version, sha256, patches ? [], withDocs ? false, extraMeta ? {} }: stdenv.mkDerivation rec { @@ -36,7 +34,7 @@ let postPatch = '' patchShebangs Configure - '' + optionalString (versionOlder version "1.1.0") '' + '' + lib.optionalString (lib.versionOlder version "1.1.0") '' patchShebangs test/* for a in test/t* ; do substituteInPlace "$a" \ @@ -44,15 +42,15 @@ let done '' # config is a configure script which is not installed. - + optionalString (versionAtLeast version "1.1.1") '' + + lib.optionalString (lib.versionAtLeast version "1.1.1") '' substituteInPlace config --replace '/usr/bin/env' '${buildPackages.coreutils}/bin/env' - '' + optionalString (versionAtLeast version "1.1.0" && stdenv.hostPlatform.isMusl) '' + '' + lib.optionalString (lib.versionAtLeast version "1.1.0" && stdenv.hostPlatform.isMusl) '' substituteInPlace crypto/async/arch/async_posix.h \ --replace '!defined(__ANDROID__) && !defined(__OpenBSD__)' \ '!defined(__ANDROID__) && !defined(__OpenBSD__) && 0' ''; - outputs = [ "bin" "dev" "out" "man" ] ++ optional withDocs "doc"; + outputs = [ "bin" "dev" "out" "man" ] ++ lib.optional withDocs "doc"; setOutputFlags = false; separateDebugInfo = !stdenv.hostPlatform.isDarwin && @@ -86,7 +84,7 @@ let else if stdenv.hostPlatform.isBSD then "./Configure BSD-generic${toString stdenv.hostPlatform.parsed.cpu.bits}" else if stdenv.hostPlatform.isMinGW - then "./Configure mingw${optionalString + then "./Configure mingw${lib.optionalString (stdenv.hostPlatform.parsed.cpu.bits != 32) (toString stdenv.hostPlatform.parsed.cpu.bits)}" else if stdenv.hostPlatform.isLinux @@ -108,12 +106,12 @@ let "-DUSE_CRYPTODEV_DIGESTS" ] ++ lib.optional enableSSL2 "enable-ssl2" ++ lib.optional enableSSL3 "enable-ssl3" - ++ lib.optional (versionAtLeast version "3.0.0") "enable-ktls" - ++ lib.optional (versionAtLeast version "1.1.0" && stdenv.hostPlatform.isAarch64) "no-afalgeng" + ++ lib.optional (lib.versionAtLeast version "3.0.0") "enable-ktls" + ++ lib.optional (lib.versionAtLeast version "1.1.0" && stdenv.hostPlatform.isAarch64) "no-afalgeng" # OpenSSL needs a specific `no-shared` configure flag. # See https://wiki.openssl.org/index.php/Compilation_and_Installation#Configure_Options # for a comprehensive list of configuration options. - ++ lib.optional (versionAtLeast version "1.1.0" && static) "no-shared"; + ++ lib.optional (lib.versionAtLeast version "1.1.0" && static) "no-shared"; makeFlags = [ "MANDIR=$(man)/share/man" |