mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
58b24cf4d2
see issue #43716
27 lines
721 B
Nix
27 lines
721 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
name = "shfmt-${version}";
|
|
version = "1.1.0";
|
|
rev = "v${version}";
|
|
|
|
goPackagePath = "github.com/mvdan/sh";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mvdan";
|
|
repo = "sh";
|
|
inherit rev;
|
|
sha256 = "0h1qy27z6j1cgkk3hkvl7w3wjqc5flgn92r3j6frn8k2wzwj7zhz";
|
|
};
|
|
|
|
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.
|
|
'';
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|