@@ -1,30 +1,22 @@
1−{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
1+{ lib, buildGoModule, fetchFromGitHub }:
22
33buildGoModule rec {
44 pname = "shfmt";
5− version = "3.1.2";
5+ version = "3.2.0";
66
77 src = fetchFromGitHub {
88 owner = "mvdan";
99 repo = "sh";
1010 rev = "v${version}";
11− sha256 = "03zgi0rlra3gz8cbqwmhpjxsg5048anfc6ccd2w50fjhx6farsnv";
11+ sha256 = "1ybrx82c4djp7izyqhvzk0rcf9ac7nv5g5ahxr0k0jhm752ba5z2";
1212 };
1313
14− vendorSha256 = "1jq2x4yxshsy4ahp7nrry8dc9cyjj46mljs447rq57sgix4ndpq8";
14+ vendorSha256 = "1ma7nvyn6ylbi8bd7x900i94pzs877kfy9xh0nf1bbify1vcpd29";
1515
1616 subPackages = [ "cmd/shfmt" ];
1717
1818 buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
1919
20− patches = [
21− # fix failing test on go 1.15, remove with > 3.1.2
22− (fetchpatch {
23− url = "https://github.com/mvdan/sh/commit/88956f97dae1f268af6c030bf2ba60762ebb488a.patch";
24− sha256 = "1zg8i7kklr12zjkaxh8djd2bzkdx8klgfj271r2wivkc2x61shgv";
25− })
26− ];
27−
2820 meta = with lib; {
2921 homepage = "https://github.com/mvdan/sh";
3022 description = "A shell parser and formatter";