2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-15 16:39:43 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "shfmt-${version}";
|
2017-01-05 23:34:25 +01:00
|
|
|
version = "1.1.0";
|
2016-10-13 21:24:39 +02:00
|
|
|
rev = "v${version}";
|
2016-06-15 16:39:43 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mvdan/sh";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mvdan";
|
|
|
|
repo = "sh";
|
|
|
|
inherit rev;
|
2017-01-05 23:34:25 +01:00
|
|
|
sha256 = "0h1qy27z6j1cgkk3hkvl7w3wjqc5flgn92r3j6frn8k2wzwj7zhz";
|
2016-06-15 16:39:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2018-08-04 18:38:46 +02:00
|
|
|
license = licenses.bsd3;
|
2016-06-15 16:39:43 +02:00
|
|
|
};
|
|
|
|
}
|