Unverified Commit 46e98ccc authored by Artturi's avatar Artturi Committed by GitHub
Browse files

Merge pull request #268519 from boltzmannrain/coresymbolication_c99_fix

parents e33d15e1 9ce73e27
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
{ lib, fetchFromGitHub, stdenv }:
{ lib, fetchFromGitHub, fetchpatch, stdenv }:

stdenv.mkDerivation {
  pname = "core-symbolication";
@@ -11,6 +11,15 @@ stdenv.mkDerivation {
    hash = "sha256-PzvLq94eNhP0+rLwGMKcMzxuD6MlrNI7iT/eV0obtSE=";
  };

  patches = [
    # C99 compilation fix
    # https://github.com/matthewbauer/CoreSymbolication/pull/1
    (fetchpatch {
      url = "https://github.com/boltzmannrain/CoreSymbolication/commit/1c26cc93f260bda9230a93e91585284e80aa231f.patch";
      hash = "sha256-d/ieDEnvZ9kVOjBVUdJzGmdvC1AF3Jk4fbwp04Q6l/I=";
    })
  ];

  makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];

  meta = with lib; {