diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-08-21 16:28:54 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-08-21 16:40:30 +1000 |
commit | d559c776a1308662651fd032a1ad10b01736168a (patch) | |
tree | bdb4bd3d8d4bf28b265d53e94c3e5e4e726f8e51 /pkgs/tools/text/shfmt | |
parent | fdc7e050b04fc88951468ff21b019a97b7e6412f (diff) |
shfmt: fix failing test on go 1.15
Diffstat (limited to 'pkgs/tools/text/shfmt')
-rw-r--r-- | pkgs/tools/text/shfmt/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/text/shfmt/default.nix b/pkgs/tools/text/shfmt/default.nix index 43c945ac76970..ec58cbdd1a945 100644 --- a/pkgs/tools/text/shfmt/default.nix +++ b/pkgs/tools/text/shfmt/default.nix @@ -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"; |