tvl-depot/ops/deploy-whitby/default.nix
Vincent Ambo 48091a3416 fix(deploy-whitby): Add jq to script $PATH
Change-Id: Ide669bce545394335b8643fa2896a242cac3df65
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3528
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
2021-09-11 14:33:42 +00:00

31 lines
570 B
Nix

{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "deploy-whitby";
phases = [ "installPhase" "installCheckPhase" ];
nativeBuildInputs = with pkgs; [
makeWrapper
];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${./deploy-whitby.sh} $out/bin/deploy-whitby.sh \
--prefix PATH : ${with pkgs; lib.makeBinPath [
ansi2html
git
jq
nix-diff
]}
'';
installCheckInputs = with pkgs; [
shellcheck
];
doInstallCheck = true;
installCheckPhase = ''
shellcheck $out/bin/deploy-whitby.sh
'';
}