Merge pull request #114681 from abathur/hammering/bashup-events
bashup-events: fix nixpkgs-hammering warnings
This commit is contained in:
commit
7012a7be42
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user