48091a3416
Change-Id: Ide669bce545394335b8643fa2896a242cac3df65 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3528 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
31 lines
570 B
Nix
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
|
|
'';
|
|
}
|