pkgs/development/tools: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-23 19:26:19 +07:00
parent f6a583eeec
commit c522fec274
534 changed files with 1314 additions and 1314 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl
, darwin
}:
@@ -17,13 +17,13 @@ buildRustPackage rec {
cargoSha256 = "1w25k3bqmmcrhpkw510vbwph0rfmrzi2wby0z2rz1q4k1f9k486m";
nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ pkg-config ];
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
buildInputs = []
++ stdenv.lib.optionals stdenv.isLinux [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices Security ])
++ lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices Security ])
;
meta = with stdenv.lib; {
meta = with lib; {
description = "Crate help in terminal: A tool for looking up details about rust crates without going to crates.io";
longDescription = ''
Chit helps answer these questions: