Commit 93f86800 authored by Zhong Jianxin's avatar Zhong Jianxin
Browse files

rtorrent: Fix build on darwin

parent 799ae392
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  cppunit,
  curl,
  fetchFromGitHub,
  fetchpatch,
  installShellFiles,
  libsigcxx,
  libtool,
@@ -30,6 +31,14 @@ stdenv.mkDerivation rec {
    hash = "sha256-G/30Enycpqg/pWC95CzT9LY99kN4tI+S8aSQhnQO+M8=";
  };

  patches = [
    # fix: use fsync for osx builds
    (fetchpatch {
      url = "https://github.com/rakshasa/rtorrent/commit/5ce84929e44fbe3f8d6cf142e3133f43afa4071f.patch";
      hash = "sha256-bFDxbpkTZ6nIUT2zMxKMgV94vWlVNzBbIbhx4Bpr8gw=";
    })
  ];

  outputs = [
    "out"
    "man"