forked from mirrors/nixpkgs
27 lines
746 B
Nix
27 lines
746 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "shfmt";
|
|
version = "3.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mvdan";
|
|
repo = "sh";
|
|
rev = "v${version}";
|
|
sha256 = "1q0gazh87y7sl5sl5m046a83d64aas9xnbg2d1d1h2vwcqdaccp2";
|
|
};
|
|
|
|
modSha256 = "1ll2cxhgf8hh19wzdykgc81c4yfcp8bzmfaif08nvvb63rhjdb5y";
|
|
subPackages = ["cmd/shfmt"];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mvdan/sh";
|
|
description = "A shell parser and formatter";
|
|
longDescription = ''
|
|
shfmt formats shell programs. It can use tabs or any number of spaces to indent.
|
|
You can feed it standard input, any number of files or any number of directories to recurse into.
|
|
'';
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|