mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
shfmt: install man page
This commit is contained in:
parent
703010347f
commit
1e20b2dce4
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, scdoc }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "shfmt";
|
pname = "shfmt";
|
||||||
@ -17,6 +17,13 @@ buildGoModule rec {
|
|||||||
|
|
||||||
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/mvdan/sh";
|
homepage = "https://github.com/mvdan/sh";
|
||||||
description = "A shell parser and formatter";
|
description = "A shell parser and formatter";
|
||||||
|
Loading…
Reference in New Issue
Block a user