diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-01-22 00:00:13 +0700 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-01-21 19:11:02 -0800 |
commit | 66e44425c6dfecbea68a5d6dc221ccd56561d4f1 (patch) | |
tree | 0a5bf7d41356ad47b4e6f0a737bf16c9a4a5b01e /pkgs/development/libraries/libevent | |
parent | 046d24424ef32cca1227519f93f41b5ec8133f31 (diff) |
pkgs/development/libraries: stdenv.lib -> lib
Diffstat (limited to 'pkgs/development/libraries/libevent')
-rw-r--r-- | pkgs/development/libraries/libevent/default.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/development/libraries/libevent/default.nix b/pkgs/development/libraries/libevent/default.nix index cbde320671721..b33e94114f639 100644 --- a/pkgs/development/libraries/libevent/default.nix +++ b/pkgs/development/libraries/libevent/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, findutils, fixDarwinDylibNames +{ lib, stdenv, fetchurl, findutils, fixDarwinDylibNames , sslSupport? true, openssl }: @@ -16,25 +16,25 @@ stdenv.mkDerivation rec { # libevent_openssl is moved into its own output, so that openssl isn't present # in the default closure. outputs = [ "out" "dev" ] - ++ stdenv.lib.optional sslSupport "openssl" + ++ lib.optional sslSupport "openssl" ; outputBin = "dev"; propagatedBuildOutputs = [ "out" ] - ++ stdenv.lib.optional sslSupport "openssl" + ++ lib.optional sslSupport "openssl" ; nativeBuildInputs = [] - ++ stdenv.lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames + ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames ; buildInputs = [] - ++ stdenv.lib.optional sslSupport openssl - ++ stdenv.lib.optional stdenv.isCygwin findutils + ++ lib.optional sslSupport openssl + ++ lib.optional stdenv.isCygwin findutils ; doCheck = false; # needs the net - postInstall = stdenv.lib.optionalString sslSupport '' + postInstall = lib.optionalString sslSupport '' moveToOutput "lib/libevent_openssl*" "$openssl" substituteInPlace "$dev/lib/pkgconfig/libevent_openssl.pc" \ --replace "$out" "$openssl" @@ -43,7 +43,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - meta = with stdenv.lib; { + meta = with lib; { description = "Event notification library"; longDescription = '' The libevent API provides a mechanism to execute a callback function |