2020-06-07 14:03:12 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-05-09 00:10:49 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
|
|
|
version = "hpd-0.2.0";
|
|
|
|
newSrc = pkgs.fetchhg {
|
|
|
|
url = "https://mirror.octobus.net/heptapod/heptapod-runner";
|
|
|
|
rev = "b4fda456f403";
|
|
|
|
sha256 = "1ybkd2jnq2dvkj157w2nlf9rmrgbd8kas43kimi9aarajgi9sri1";
|
|
|
|
};
|
2020-05-09 22:49:32 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
heptapod-runner = pkgs.gitlab-runner.overrideAttrs (oldAttrs: rec {
|
|
|
|
inherit version;
|
|
|
|
buildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
|
|
|
|
src = newSrc;
|
|
|
|
});
|
|
|
|
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"
|
|
|
|
cp "${newSrc}/dockerfiles/build/runner.hgrc" "$out/etc/mercurial/hgrc"
|
|
|
|
'';
|
|
|
|
};
|
2020-05-09 22:49:32 +00:00
|
|
|
}
|