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) | |
download | nixpkgs-d559c776a1308662651fd032a1ad10b01736168a.tar nixpkgs-d559c776a1308662651fd032a1ad10b01736168a.tar.gz nixpkgs-d559c776a1308662651fd032a1ad10b01736168a.tar.bz2 nixpkgs-d559c776a1308662651fd032a1ad10b01736168a.tar.lz nixpkgs-d559c776a1308662651fd032a1ad10b01736168a.tar.xz nixpkgs-d559c776a1308662651fd032a1ad10b01736168a.tar.zst nixpkgs-d559c776a1308662651fd032a1ad10b01736168a.zip |
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 43c945ac769..ec58cbdd1a9 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"; |