summary refs log tree commit diff
path: root/pkgs/tools/text/shfmt
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2020-10-30 23:18:53 +0100
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-10-31 09:59:37 +1000
commit703010347ffff5a5280965512b357e4a74efa9ed (patch)
treefde62993568b1611a800809f04d41d96ccf92fc2 /pkgs/tools/text/shfmt
parent21b2619ee600261d8fe69c739ec7b4a8115000ac (diff)
downloadnixpkgs-703010347ffff5a5280965512b357e4a74efa9ed.tar
nixpkgs-703010347ffff5a5280965512b357e4a74efa9ed.tar.gz
nixpkgs-703010347ffff5a5280965512b357e4a74efa9ed.tar.bz2
nixpkgs-703010347ffff5a5280965512b357e4a74efa9ed.tar.lz
nixpkgs-703010347ffff5a5280965512b357e4a74efa9ed.tar.xz
nixpkgs-703010347ffff5a5280965512b357e4a74efa9ed.tar.zst
nixpkgs-703010347ffff5a5280965512b357e4a74efa9ed.zip
shfmt: 3.1.2 -> 3.2.0
Diffstat (limited to 'pkgs/tools/text/shfmt')
-rw-r--r--pkgs/tools/text/shfmt/default.nix16
1 files changed, 4 insertions, 12 deletions
diff --git a/pkgs/tools/text/shfmt/default.nix b/pkgs/tools/text/shfmt/default.nix
index ec58cbdd1a9..694b1db58f5 100644
--- a/pkgs/tools/text/shfmt/default.nix
+++ b/pkgs/tools/text/shfmt/default.nix
@@ -1,30 +1,22 @@
-{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
+{ lib, buildGoModule, fetchFromGitHub }:
 
 buildGoModule rec {
   pname = "shfmt";
-  version = "3.1.2";
+  version = "3.2.0";
 
   src = fetchFromGitHub {
     owner = "mvdan";
     repo = "sh";
     rev = "v${version}";
-    sha256 = "03zgi0rlra3gz8cbqwmhpjxsg5048anfc6ccd2w50fjhx6farsnv";
+    sha256 = "1ybrx82c4djp7izyqhvzk0rcf9ac7nv5g5ahxr0k0jhm752ba5z2";
   };
 
-  vendorSha256 = "1jq2x4yxshsy4ahp7nrry8dc9cyjj46mljs447rq57sgix4ndpq8";
+  vendorSha256 = "1ma7nvyn6ylbi8bd7x900i94pzs877kfy9xh0nf1bbify1vcpd29";
 
   subPackages = [ "cmd/shfmt" ];
 
   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";