diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-10-31 09:22:22 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-10-31 09:59:37 +1000 |
commit | 1e20b2dce4213b6a79e7fb7d3e1c5dad0ef5430f (patch) | |
tree | be8a1a4935141cd106713d2234f8aefff2b97eda /pkgs/tools/text/shfmt | |
parent | 703010347ffff5a5280965512b357e4a74efa9ed (diff) |
shfmt: install man page
Diffstat (limited to 'pkgs/tools/text/shfmt')
-rw-r--r-- | pkgs/tools/text/shfmt/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/text/shfmt/default.nix b/pkgs/tools/text/shfmt/default.nix index 694b1db58f5f..1d1def43177c 100644 --- a/pkgs/tools/text/shfmt/default.nix +++ b/pkgs/tools/text/shfmt/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, installShellFiles, scdoc }: buildGoModule rec { pname = "shfmt"; @@ -17,6 +17,13 @@ buildGoModule rec { buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ]; + nativeBuildInputs = [ installShellFiles scdoc ]; + + postBuild = '' + scdoc < cmd/shfmt/shfmt.1.scd > shfmt.1 + installManPage shfmt.1 + ''; + meta = with lib; { homepage = "https://github.com/mvdan/sh"; description = "A shell parser and formatter"; |