Unverified Commit 5b53cef5 authored by Stefan Frijters's avatar Stefan Frijters
Browse files

syncterm: move CFLAGS into env for structuredAttrs

parent 48bccb78
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -24,16 +24,18 @@ stdenv.mkDerivation (finalAttrs: {
  # We can't use sourceRoot, as the cherry-picked patches apply to files outside of it.
  postPatch = "cd src/syncterm";

  CFLAGS = [
  env.CFLAGS = toString (
    [
      "-DHAS_INTTYPES_H"
      "-DXPDEV_DONT_DEFINE_INTTYPES"

      "-Wno-unused-result"
      "-Wformat-overflow=0"
    ]
  ++ (lib.optionals stdenv.hostPlatform.isLinux [
    ++ lib.optionals stdenv.hostPlatform.isLinux [
      "-DUSE_ALSA_SOUND" # Don't use OSS for beeps.
  ]);
    ]
  );

  makeFlags = [
    "PREFIX=$(out)"