Commit fbf13b57 authored by exit-b's avatar exit-b
Browse files

sacc: fix Darwin build

CFLAGS is ignored in this case leading to failed build on Darwin. The change uses OSCFLAGS which is specifically used to pass OS-specific CFLAGS is this project, without overwriting the general CFLAGS specified in config.mk.
parent 444cd383
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -15,8 +15,8 @@ stdenv.mkDerivation rec {

  buildInputs = [ ncurses libressl ];

  CFLAGS = lib.optionals stdenv.hostPlatform.isDarwin [
    "-D_DARWIN_C_SOURCE"
  makeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
    "OSCFLAGS=-D_DARWIN_C_SOURCE"
  ];

  postPatch = ''