git.iko.soy/typeable/nixpkgs
on master help sign in
circleci-cli: 0.1.2569 -> 0.1.5879
commitbc172c87800ab8f41865c5edd3496836b82678f5 authorMario Rodas <marsam@users.noreply.github.com> dateWed 18 Sep 2019, 18:00 (7 years ago) parent9d09cf0
1 file changed+16−13
pkgs/development/tools/misc/circleci-cli/default.nix+16−13
pkgs/development/tools/misc/circleci-cli/default.nix+16−13
@@ -1,22 +1,26 @@
1−{ stdenv, fetchFromGitHub, buildGoPackage }:
1+{ stdenv, fetchFromGitHub, buildGoModule }:
22
3−let
4− owner = "CircleCI-Public";
3+buildGoModule rec {
54 pname = "circleci-cli";
6− version = "0.1.2569";
7−in
8−buildGoPackage {
9− name = "${pname}-${version}";
10− inherit version;
5+ version = "0.1.5879";
116
12− src = fetchFromGitHub {
13− inherit owner;
7+ src = fetchFromGitHub {
8+ owner = "CircleCI-Public";
149 repo = pname;
1510 rev = "v${version}";
16− sha256 = "0ixiqx8rmia02r44zbhw149p5x9r9cv1fsnlhl8p2x5zd2bdr18x";
11+ sha256 = "1471g56apaw0c5dpa0jrr7hvzh3kbwfr3yr0m4mz2dlf27d481ac";
1712 };
1813
19− goPackagePath = "github.com/${owner}/${pname}";
14+ modSha256 = "0cvmcsl00jfikpkw3f7k5zw65156z5g5l2b6s5803a2i9d613268";
15+
16+ preBuild = ''
17+ substituteInPlace data/data.go \
18+ --replace 'packr.New("circleci-cli-box", "../_data")' 'packr.New("circleci-cli-box", "${placeholder "out"}/share/circleci-cli")'
19+ '';
20+
21+ postInstall = ''
22+ install -Dm644 -t $out/share/circleci-cli _data/data.yml
23+ '';
2024
2125 meta = with stdenv.lib; {
2226 # Box blurb edited from the AUR package circleci-cli
@@ -25,7 +29,6 @@ buildGoPackage {
2529 run jobs as if they were running on the hosted CirleCI application.
2630 '';
2731 maintainers = with maintainers; [ synthetica ];
28− platforms = platforms.unix;
2932 license = licenses.mit;
3033 homepage = https://circleci.com/;
3134 };