3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
Pascal Bach 9175a201bb gitlab-runner: don't bundle prebuilt docker images (#66225)
The bundeled images are no longer compiled into the binary. They are
also not strictly required as they will be fetched if not available.

This change removes them as this reduces the closure size and also makes
updates easier.
2019-08-08 10:35:53 +00:00

35 lines
975 B
Nix

{ lib, buildGoPackage, fetchFromGitLab, fetchurl }:
let
version = "12.1.0";
in
buildGoPackage rec {
inherit version;
name = "gitlab-runner-${version}";
goPackagePath = "gitlab.com/gitlab-org/gitlab-runner";
commonPackagePath = "${goPackagePath}/common";
buildFlagsArray = ''
-ldflags=
-X ${commonPackagePath}.NAME=gitlab-runner
-X ${commonPackagePath}.VERSION=${version}
-X ${commonPackagePath}.REVISION=v${version}
'';
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-runner";
rev = "v${version}";
sha256 = "0npjgarbwih8j2ih1mshwyp4nj9h15phvg61kifh63p9mf4r63nn";
};
patches = [ ./fix-shell-path.patch ];
meta = with lib; {
description = "GitLab Runner the continuous integration executor of GitLab";
license = licenses.mit;
homepage = https://about.gitlab.com/gitlab-ci/;
platforms = platforms.unix ++ platforms.darwin;
maintainers = with maintainers; [ bachp zimbatm ];
};
}