forked from mirrors/nixpkgs
9175a201bb
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.
35 lines
975 B
Nix
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 ];
|
|
};
|
|
}
|