Skip to content

Commit

Permalink
mitmproxy: use fetchpatch for patch retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Jul 18, 2017
1 parent 5b92a39 commit 99499a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/tools/networking/mitmproxy/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchFromGitHub, python3Packages }:
{ stdenv, fetchpatch, fetchFromGitHub, python3Packages }:

python3Packages.buildPythonPackage rec {
baseName = "mitmproxy";
Expand All @@ -15,9 +15,9 @@ python3Packages.buildPythonPackage rec {
patches = [
# Bump pyopenssl dependency
# https://github.com/mitmproxy/mitmproxy/pull/2252
(fetchurl {
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/mitmproxy/mitmproxy/pull/2252.patch";
sha256 = "0s3a6lf0wjnxi1r70qlhh0siaxhk5j2cysnv4xfkji3f2v7hhri4";
sha256 = "1smld21df79249qbh412w8gi2agcf4zjhxnlawy19yjl1fk2h67c";
})
];

Expand Down

0 comments on commit 99499a5

Please sign in to comment.