circleci-cli: 0.1.0 -> 0.1.2307 (#46983)
* circleci-cli: 0.1.0 -> 0.1.2307 We are also building from source now, instead of using a pre-packaged version. This means we need Go. Also did minor refactors. * circleci-cli: removed unneeded dependencies
This commit is contained in:
parent
0214f9e25e
commit
1c40a3eb05
@ -1,28 +1,22 @@
|
|||||||
{ stdenv, fetchFromGitHub, docker, makeWrapper }:
|
{ stdenv, fetchFromGitHub, buildGoPackage }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "${pname}-${version}";
|
owner = "CircleCI-Public";
|
||||||
pname = "circleci-cli";
|
pname = "circleci-cli";
|
||||||
version = "0.1.0";
|
version = "0.1.2307";
|
||||||
|
in
|
||||||
|
buildGoPackage rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "circleci";
|
inherit owner;
|
||||||
repo = "local-cli";
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1bv1ck5zvyl6pyvbfglizg8ybna4yg2nz441kiv5rmp4g27n6db2";
|
sha256 = "0z71jnq42idvhgpgn3mdpbajmgn4b41rpifv5qxn3h1pgi08f75s";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
goPackagePath = "github.com/${owner}/${pname}";
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p "$out/bin/"
|
|
||||||
cp "$src/circleci.sh" "$out/bin/circleci"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
wrapProgram $out/bin/circleci \
|
|
||||||
--prefix "PATH" : "${docker}/bin"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
# Box blurb edited from the AUR package circleci-cli
|
# Box blurb edited from the AUR package circleci-cli
|
||||||
|
Loading…
Reference in New Issue
Block a user