Merge pull request #166313 from lovesegfault/actionlint-pyflakes
actionlint: wrap with shellcheck and pyflakes
This commit is contained in:
commit
48ee41f4d0
1 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,12 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub, ronn, installShellFiles }:
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
|
, makeWrapper
|
||||||
|
, python3Packages
|
||||||
|
, ronn
|
||||||
|
, shellcheck
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "actionlint";
|
pname = "actionlint";
|
||||||
|
@ -15,11 +23,13 @@ buildGoModule rec {
|
||||||
|
|
||||||
vendorSha256 = "sha256-CxNER8aQftMG14M+x6bPwcXgUZRkUDYZtFg1cPxxg+I=";
|
vendorSha256 = "sha256-CxNER8aQftMG14M+x6bPwcXgUZRkUDYZtFg1cPxxg+I=";
|
||||||
|
|
||||||
nativeBuildInputs = [ ronn installShellFiles ];
|
nativeBuildInputs = [ makeWrapper ronn installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
ronn --roff man/actionlint.1.ronn
|
ronn --roff man/actionlint.1.ronn
|
||||||
installManPage man/actionlint.1
|
installManPage man/actionlint.1
|
||||||
|
wrapProgram "$out/bin/actionlint" \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ python3Packages.pyflakes shellcheck ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
ldflags = [ "-s" "-w" "-X github.com/rhysd/actionlint.version=${version}" ];
|
ldflags = [ "-s" "-w" "-X github.com/rhysd/actionlint.version=${version}" ];
|
||||||
|
|
Loading…
Reference in a new issue