Merge pull request #185111 from jiegec/circleci-cli

circleci-cli: 0.1.17142 -> 0.1.20397
This commit is contained in:
Mario Rodas 2022-08-13 11:59:33 -05:00 committed by GitHub
commit 8ef646175a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,30 +2,21 @@
buildGoModule rec {
pname = "circleci-cli";
version = "0.1.17142";
version = "0.1.20397";
src = fetchFromGitHub {
owner = "CircleCI-Public";
repo = pname;
rev = "v${version}";
sha256 = "sha256-69GGJfnOHry+N3hKZapKz6eFSerqIHt4wRAhm/q/SOQ=";
sha256 = "sha256-2z5xax9RmBWYV7xNGNZQJKdPY5pUdcFCU+cQoGamvVk=";
};
vendorSha256 = "sha256-7u2y1yBVpXf+D19tslD4s3B1KmABl4OWNzzLaBNL/2U=";
vendorSha256 = "sha256-EswzTlvFbFZK76cl0TKxIcr8Qa7/RcQCvvw+Si323Hs=";
doCheck = false;
ldflags = [ "-s" "-w" "-X github.com/CircleCI-Public/circleci-cli/version.Version=${version}" "-X github.com/CircleCI-Public/circleci-cli/version.Commit=${src.rev}" "-X github.com/CircleCI-Public/circleci-cli/version.packageManager=nix" ];
preBuild = ''
substituteInPlace data/data.go \
--replace 'packr.New("circleci-cli-box", "../_data")' 'packr.New("circleci-cli-box", "${placeholder "out"}/share/circleci-cli")'
'';
postInstall = ''
install -Dm644 -t $out/share/circleci-cli _data/data.yml
'';
meta = with lib; {
# Box blurb edited from the AUR package circleci-cli
description = ''