Advertisement
Guest User

Untitled

a guest
May 17th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. mitmproxy = pkgs.stdenv.mkDerivation rec {
  2. name = "mitmproxy";
  3. version = "2.0.2";
  4. src = pkgs.fetchurl {
  5. url = "https://github.com/mitmproxy/mitmproxy/releases/download/v${version}/mitmproxy-${version}-linux.tar.gz";
  6. sha256 = "0ksp55pkifqykfc26pzjln16w5a9i95m4d1vflymrqkxls7qm8kd";
  7. };
  8. phases = [ "unpackPhase" "installPhase" ];
  9. installPhase = ''
  10. mkdir -p $out/bin
  11. cp mitmdump $out/bin
  12. cp mitmproxy $out/bin
  13. cp mitmweb $out/bin
  14. '';
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement