bashup-events: satisfy nixpkgs-hammering warnings

This commit is contained in:
Travis A. Everett 2021-02-28 11:21:51 -06:00
parent ddf21160e3
commit 1b9a5b3f9f

View File

@ -1,8 +1,6 @@
{ {
# general # general
lib lib
, callPackage
, runCommand
, resholvePackage , resholvePackage
, bash , bash
, shellcheck , shellcheck
@ -46,7 +44,9 @@ resholvePackage rec {
inherit src; inherit src;
installPhase = '' installPhase = ''
runHook preInstall
install -Dt $out/bin bashup.events install -Dt $out/bin bashup.events
runHook postInstall
''; '';
inherit doCheck; inherit doCheck;
@ -54,9 +54,11 @@ resholvePackage rec {
# check based on https://github.com/bashup/events/blob/master/.dkrc # check based on https://github.com/bashup/events/blob/master/.dkrc
checkPhase = '' checkPhase = ''
runHook preCheck
SHELLCHECK_OPTS='-e SC2016,SC2145' ${shellcheck}/bin/shellcheck ./bashup.events SHELLCHECK_OPTS='-e SC2016,SC2145' ${shellcheck}/bin/shellcheck ./bashup.events
${bash}/bin/bash -n ./bashup.events ${bash}/bin/bash -n ./bashup.events
${bash}/bin/bash ./bashup.events ${bash}/bin/bash ./bashup.events
runHook postCheck
''; '';
solutions = { solutions = {
@ -70,7 +72,11 @@ resholvePackage rec {
inherit doInstallCheck; inherit doInstallCheck;
installCheckInputs = [ bash ]; installCheckInputs = [ bash ];
installCheckPhase = installCheck "${bash}/bin/bash"; installCheckPhase = ''
runHook preInstallCheck
${installCheck "${bash}/bin/bash"}
runHook postInstallCheck
'';
meta = with lib; { meta = with lib; {
inherit branch; inherit branch;