heptapod-runner: add derivation

This commit is contained in:
Luke Granger-Brown 2020-05-09 01:10:49 +01:00
parent f34991e545
commit 5b96c181b2
2 changed files with 22 additions and 0 deletions

View file

@ -1,4 +1,5 @@
args: {
javaws-env = import ./javaws-env.nix args;
plex-pass = import ./plex-pass.nix args;
heptapod-runner = import ./heptapod-runner.nix args;
}

View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
let
version = "hpd-0.2.0";
newSrc = pkgs.fetchhg {
url = "https://mirror.octobus.net/heptapod/heptapod-runner";
rev = "b4fda456f403";
sha256 = "1ybkd2jnq2dvkj157w2nlf9rmrgbd8kas43kimi9aarajgi9sri1";
};
in
pkgs.gitlab-runner.overrideAttrs (oldAttrs: rec {
inherit version;
buildInputs = [
(pkgs.mercurial.overrideAttrs (hgOldAttrs: rec {
postInstall = ''
mkdir -p "$out/etc/mercurial"
cp "${newSrc}/dockerfiles/build/runner.hgrc" "$out/etc/mercurial/hgrc"
'';
}))
];
src = newSrc;
})