shfmt: fix failing test on go 1.15

This commit is contained in:
zowoq 2020-08-21 16:28:54 +10:00
parent fdc7e050b0
commit d559c776a1

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
buildGoModule rec {
pname = "shfmt";
@ -17,6 +17,14 @@ buildGoModule rec {
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
patches = [
# fix failing test on go 1.15, remove with > 3.1.2
(fetchpatch {
url = "https://github.com/mvdan/sh/commit/88956f97dae1f268af6c030bf2ba60762ebb488a.patch";
sha256 = "1zg8i7kklr12zjkaxh8djd2bzkdx8klgfj271r2wivkc2x61shgv";
})
];
meta = with lib; {
homepage = "https://github.com/mvdan/sh";
description = "A shell parser and formatter";