3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #16247 from cerana/shfmt

Add new package "shfmt"
This commit is contained in:
Benjamin Staffin 2016-06-16 01:41:05 -04:00 committed by GitHub
commit 52c7f863c2
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

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