a8b1b57b85
GitOrigin-RevId: fc4148a47fa927319186061aa42633c8aa5777f1
36 lines
981 B
Nix
36 lines
981 B
Nix
{ lib, buildGoPackage, fetchFromGitLab, fetchurl }:
|
|
|
|
let
|
|
version = "14.7.0";
|
|
in
|
|
buildGoPackage rec {
|
|
inherit version;
|
|
pname = "gitlab-runner";
|
|
goPackagePath = "gitlab.com/gitlab-org/gitlab-runner";
|
|
subPackages = [ "." ];
|
|
commonPackagePath = "${goPackagePath}/common";
|
|
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 = "0l7bbmhvgz12nq52nmvgs1qmcknikw8f2dn9l93ijb1sr495fygl";
|
|
};
|
|
|
|
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 globin ];
|
|
};
|
|
}
|