Skip to content

Commit

Permalink
curlie: fix build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Sep 28, 2022
1 parent 979a581 commit 091016d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
13 changes: 13 additions & 0 deletions pkgs/tools/networking/curlie/bump-golang-x-sys.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/go.mod b/go.mod
index 660463a..5249458 100644
--- a/go.mod
+++ b/go.mod
@@ -2,7 +2,7 @@ module github.com/rs/curlie

require (
golang.org/x/crypto v0.0.0-20180524125353-159ae71589f3
- golang.org/x/sys v0.0.0-20191026070338-33540a1f6037
+ golang.org/x/sys v0.0.0-20211110154304-99a53858aa08
)

go 1.13
6 changes: 5 additions & 1 deletion pkgs/tools/networking/curlie/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ buildGoModule rec {
hash = "sha256-3EKxuEpFm+lp2myMfymYYY9boSXGOF2iAdjtGKnjJK0=";
};

vendorSha256 = "sha256-tYZtnD7RUurhl8yccXlTIvOxybBJITM+it1ollYJ1OI=";
patches = [
./bump-golang-x-sys.patch
];

vendorSha256 = "sha256-VsPdMUfS4UVem6uJgFISfFHQEKtIumDQktHQFPC1muc=";

ldflags = [ "-s" "-w" "-X main.version=${version}" ];

Expand Down

0 comments on commit 091016d

Please sign in to comment.