2020-06-07 14:03:12 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-12-20 02:47:45 +00:00
|
|
|
{ pkgs, depot, ... }:
|
2020-05-09 00:10:49 +00:00
|
|
|
let
|
2024-06-08 23:51:17 +00:00
|
|
|
version = "hpd-0.6.3";
|
|
|
|
newSrc = pkgs.fetchFromGitLab {
|
|
|
|
domain = "foss.heptapod.net";
|
|
|
|
owner = "heptapod";
|
|
|
|
repo = "heptapod-runner";
|
|
|
|
rev = "15f2668f0c05cd56e0eae34f7b198a9553b7f697";
|
|
|
|
hash = "sha256-u9I7Ni4ZFI4gCROm/d41Okiu2FdiFj94KNLxHZSn7AM=";
|
2020-05-09 00:10:49 +00:00
|
|
|
};
|
2020-05-09 22:49:32 +00:00
|
|
|
in
|
|
|
|
{
|
2022-03-11 15:15:30 +00:00
|
|
|
heptapod-runner = pkgs.buildGoModule rec {
|
|
|
|
pname = "heptapod-runner";
|
2020-05-09 22:49:32 +00:00
|
|
|
inherit version;
|
2022-03-11 15:15:30 +00:00
|
|
|
|
|
|
|
commonPackagePath = "gitlab.com/gitlab-org/gitlab-runner/common";
|
|
|
|
ldflags = [
|
|
|
|
"-X ${commonPackagePath}.NAME=heptapod-runner"
|
|
|
|
"-X ${commonPackagePath}.VERSION=${version}"
|
|
|
|
"-X ${commonPackagePath}.REVISION=v${version}"
|
|
|
|
];
|
|
|
|
|
2020-05-09 22:49:32 +00:00
|
|
|
src = newSrc;
|
2023-12-14 11:17:47 +00:00
|
|
|
vendorHash = null;
|
2022-03-11 15:15:30 +00:00
|
|
|
|
2021-12-25 20:31:34 +00:00
|
|
|
patches = [ ./fix-shell-path.patch ];
|
2022-03-11 15:15:30 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
};
|
2020-05-09 22:49:32 +00:00
|
|
|
heptapod-runner-mercurial = pkgs.symlinkJoin {
|
2020-05-09 12:22:49 +00:00
|
|
|
name = pkgs.mercurial.name;
|
|
|
|
paths = [ pkgs.mercurial ];
|
|
|
|
postBuild = ''
|
|
|
|
mkdir -p "$out/etc/mercurial"
|
2021-12-20 05:56:24 +00:00
|
|
|
cp "${newSrc}/dockerfiles/runner-helper/runner.hgrc" "$out/etc/mercurial/hgrc"
|
2020-05-09 12:22:49 +00:00
|
|
|
'';
|
|
|
|
};
|
2020-05-09 22:49:32 +00:00
|
|
|
}
|