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 @@
{ fetchFromGitHub, stdenv, buildGoModule,
{ fetchFromGitHub, lib, stdenv, buildGoModule,
makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep }:
buildGoModule rec {
name = "buildkite-agent-${version}";
@@ -27,10 +27,10 @@ buildGoModule rec {
# These are runtime dependencies
wrapProgram $out/bin/buildkite-agent \
--prefix PATH : '${stdenv.lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}'
--prefix PATH : '${lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}'
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Build runner for buildkite.com";
longDescription = ''
The buildkite-agent is a small, reliable, and cross-platform build runner

View File

@@ -13,7 +13,7 @@ buildGoPackage {
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
${stdenv.lib.optionalString hasBootstrapScript ''
${lib.optionalString hasBootstrapScript ''
# Install bootstrap.sh
mkdir -p $out/libexec/buildkite-agent
cp $NIX_BUILD_TOP/go/src/${goPackagePath}/templates/bootstrap.sh $out/libexec/buildkite-agent
@@ -25,11 +25,11 @@ buildGoPackage {
# These are runtime dependencies
wrapProgram $out/bin/buildkite-agent \
${stdenv.lib.optionalString hasBootstrapScript "--set BUILDKITE_BOOTSTRAP_SCRIPT_PATH $out/libexec/buildkite-agent/bootstrap.sh"} \
--prefix PATH : '${stdenv.lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}'
${lib.optionalString hasBootstrapScript "--set BUILDKITE_BOOTSTRAP_SCRIPT_PATH $out/libexec/buildkite-agent/bootstrap.sh"} \
--prefix PATH : '${lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}'
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Build runner for buildkite.com";
longDescription = ''
The buildkite-agent is a small, reliable, and cross-platform build runner