Add new package "shfmt"

This commit is contained in:
Nahum Shalman 2016-06-15 14:39:43 +00:00
parent ac92273faa
commit d624b02e1e
2 changed files with 27 additions and 0 deletions

View file

@ -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.
'';
};
}

View file

@ -14102,6 +14102,8 @@ in
gtk = gtk3;
};
shfmt = callPackage ../tools/text/shfmt { };
shutter = callPackage ../applications/graphics/shutter { };
simple-scan = callPackage ../applications/graphics/simple-scan { };