2021-05-23 18:34:41 +02:00
|
|
|
{ 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
|
2021-09-11 03:21:45 +02:00
|
|
|
jq
|
2022-01-12 15:57:26 +01:00
|
|
|
nvd
|
2021-05-23 18:34:41 +02:00
|
|
|
]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
installCheckInputs = with pkgs; [
|
|
|
|
shellcheck
|
|
|
|
];
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
shellcheck $out/bin/deploy-whitby.sh
|
|
|
|
'';
|
|
|
|
}
|