heptapod-runner: add derivation
This commit is contained in:
parent
f34991e545
commit
5b96c181b2
2 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
21
nix/pkgs/heptapod-runner.nix
Normal file
21
nix/pkgs/heptapod-runner.nix
Normal 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;
|
||||
})
|
Loading…
Reference in a new issue