shellcheck: fix build

shellcheck no longer auto builds its manpage[1]

[1] 2c026f1ec7
This commit is contained in:
Mario Rodas 2020-04-11 00:00:00 -05:00
parent 0af01aa8d1
commit c4ff843ed1
No known key found for this signature in database
GPG key ID: 325649BCA6D53027

View file

@ -1,4 +1,4 @@
{ stdenv, lib, haskellPackages, haskell }:
{ stdenv, lib, haskellPackages, haskell, pandoc }:
# this wraps around the haskell package
# and puts the documentation into place
@ -24,9 +24,15 @@ let
inherit src;
nativeBuildInputs = [ pandoc ];
outputs = [ "bin" "man" "doc" "out" ];
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
phases = [ "unpackPhase" "buildPhase" "installPhase" "fixupPhase" ];
buildPhase = ''
pandoc -s -f markdown-smart -t man shellcheck.1.md -o shellcheck.1
'';
installPhase = ''
install -Dm755 ${bin}/bin/shellcheck $bin/bin/shellcheck