Skip to content

Commit 99499a5

Browse files
committedJul 18, 2017
mitmproxy: use fetchpatch for patch retrieval
1 parent 5b92a39 commit 99499a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎pkgs/tools/networking/mitmproxy/default.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ stdenv, fetchurl, fetchFromGitHub, python3Packages }:
1+
{ stdenv, fetchpatch, fetchFromGitHub, python3Packages }:
22

33
python3Packages.buildPythonPackage rec {
44
baseName = "mitmproxy";
@@ -15,9 +15,9 @@ python3Packages.buildPythonPackage rec {
1515
patches = [
1616
# Bump pyopenssl dependency
1717
# https://github.com/mitmproxy/mitmproxy/pull/2252
18-
(fetchurl {
18+
(fetchpatch {
1919
url = "https://patch-diff.githubusercontent.com/raw/mitmproxy/mitmproxy/pull/2252.patch";
20-
sha256 = "0s3a6lf0wjnxi1r70qlhh0siaxhk5j2cysnv4xfkji3f2v7hhri4";
20+
sha256 = "1smld21df79249qbh412w8gi2agcf4zjhxnlawy19yjl1fk2h67c";
2121
})
2222
];
2323

0 commit comments

Comments
 (0)
Please sign in to comment.