Merge pull request #124058 from stephank/fix-sambamba-darwin

sambamba: fix darwin build
This commit is contained in:
Robert Scott 2021-05-22 21:05:15 +01:00 committed by GitHub
commit 6f8af15166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, python3, which, ldc, zlib }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, python3, which, ldc, zlib }:
stdenv.mkDerivation rec {
pname = "sambamba";
@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
patches = [
# Fixes hardcoded gcc, making clang build possible.
(fetchpatch {
url = "https://github.com/biod/sambamba/commit/c50a1c91e1ba062635467f197139bf6784e9be15.patch";
sha256 = "1y0vlybmb9wpg4z1nca7m96mk9hxmvd3yrg7w8rxscj45hcqvf8q";
})
];
nativeBuildInputs = [ which python3 ldc ];
buildInputs = [ zlib ];