diff options
author | Benjamin Staffin <benley@gmail.com> | 2016-06-16 01:41:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-16 01:41:05 -0400 |
commit | 52c7f863c23b6b07309a084014dd6904a566070a (patch) | |
tree | b5d3b3e01e6fb4c8fa8bc146bca3ce450c00a7eb /pkgs/tools | |
parent | 7b21572b90fac73e0ed4950d3a894e2d00b42d19 (diff) | |
parent | d624b02e1eff21580b93970f03459fe0246600bb (diff) | |
download | nixlib-52c7f863c23b6b07309a084014dd6904a566070a.tar nixlib-52c7f863c23b6b07309a084014dd6904a566070a.tar.gz nixlib-52c7f863c23b6b07309a084014dd6904a566070a.tar.bz2 nixlib-52c7f863c23b6b07309a084014dd6904a566070a.tar.lz nixlib-52c7f863c23b6b07309a084014dd6904a566070a.tar.xz nixlib-52c7f863c23b6b07309a084014dd6904a566070a.tar.zst nixlib-52c7f863c23b6b07309a084014dd6904a566070a.zip |
Merge pull request #16247 from cerana/shfmt
Add new package "shfmt"
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/text/shfmt/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/text/shfmt/default.nix b/pkgs/tools/text/shfmt/default.nix new file mode 100644 index 000000000000..1c6dede0c54c --- /dev/null +++ b/pkgs/tools/text/shfmt/default.nix @@ -0,0 +1,25 @@ +{ stdenv, lib, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "shfmt-${version}"; + version = "2016-06-15"; + rev = "233b276a55cdd4aaa4625893255382993bbb0533"; + + goPackagePath = "github.com/mvdan/sh"; + + src = fetchFromGitHub { + owner = "mvdan"; + repo = "sh"; + inherit rev; + sha256 = "09rq99gw2g6az6dmdg82nql8zp3c3mrqavqwvx76dirabzjhsbj6"; + }; + + meta = with stdenv.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. + ''; + }; +} |