diff options
author | Travis A. Everett <travis.a.everett@gmail.com> | 2021-02-28 11:21:51 -0600 |
---|---|---|
committer | Travis A. Everett <travis.a.everett@gmail.com> | 2021-02-28 11:21:51 -0600 |
commit | 1b9a5b3f9f30c0c7c32dff75460f2742b05a9794 (patch) | |
tree | d3ee950cb7da4869bf5f96bb6d3aea4f503a6f23 /pkgs/development/libraries/bashup-events | |
parent | ddf21160e30fbd75c344a8939cc6d518f88409a1 (diff) |
bashup-events: satisfy nixpkgs-hammering warnings
Diffstat (limited to 'pkgs/development/libraries/bashup-events')
-rw-r--r-- | pkgs/development/libraries/bashup-events/generic.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/libraries/bashup-events/generic.nix b/pkgs/development/libraries/bashup-events/generic.nix index 78ef4c2f3369..fd4e2cfe9f5f 100644 --- a/pkgs/development/libraries/bashup-events/generic.nix +++ b/pkgs/development/libraries/bashup-events/generic.nix @@ -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; |