Unverified Commit 14b17996 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

python3Packages.libarchive-c: patch to build on darwin

https://hydra.nixos.org/build/304767823/nixlog/4/tail
I'm not sure why the issue doesn't happen on linux.
parent eec675b6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  libarchive,
  glibcLocales,
  mock,
@@ -21,6 +22,14 @@ buildPythonPackage rec {
    sha256 = "sha256-JqXTV1aD3k88OlW+8rT3xsDuW34+1xErG7hkupvL7Uo=";
  };

  patches = [
    # https://github.com/Changaco/python-libarchive-c/pull/141
    (fetchpatch {
      url = "https://github.com/Changaco/python-libarchive-c/commit/e0e2a47b2403632642ee932dd56acd11e4a79efe.diff";
      hash = "sha256-C9eD4cGQOIdBYy4ytom49lA/Jaarj7LbSIgjxCk/H84=";
    })
  ];

  LC_ALL = "en_US.UTF-8";

  postPatch = ''