Merge pull request #114681 from abathur/hammering/bashup-events

bashup-events: fix nixpkgs-hammering warnings
This commit is contained in:
Sandro 2021-02-28 19:00:12 +01:00 committed by GitHub
commit 7012a7be42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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