Unverified Commit f1b95cf9 authored by Gergő Gutyina's avatar Gergő Gutyina Committed by GitHub
Browse files

argagg: move NIX_CFLAGS_COMPILE into env for structuredAttrs (#496830)

parents 4f61dda6 f28cd3e0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -25,8 +25,10 @@ stdenv.mkDerivation (finalAttrs: {
      --replace-fail "cmake_minimum_required( VERSION 2.8 )" "cmake_minimum_required(VERSION 3.10)"
  '';

  env = lib.optionalAttrs stdenv.cc.isClang {
    # fixes: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.
  NIX_CFLAGS_COMPILE = lib.optional stdenv.cc.isClang "-Wno-error=deprecated-declarations";
    NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
  };

  meta = {
    homepage = "https://github.com/vietjtnguyen/argagg";