Skip to content

Commit

Permalink
shfmt: fix failing test on go 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed Aug 21, 2020
1 parent fdc7e05 commit d559c77
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/tools/text/shfmt/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:

buildGoModule rec {
pname = "shfmt";
Expand All @@ -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";
Expand Down

0 comments on commit d559c77

Please sign in to comment.