a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
31 lines
565 B
Nix
31 lines
565 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
|
|
nvd
|
|
]}
|
|
'';
|
|
|
|
installCheckInputs = with pkgs; [
|
|
shellcheck
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
shellcheck $out/bin/deploy-whitby.sh
|
|
'';
|
|
}
|