Unverified Commit 51ac08b7 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

librep: fix build (#493393)

parents bd275038 8ba5767e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -49,6 +49,8 @@ stdenv.mkDerivation (finalAttrs: {
  strictDeps = true;
  enableParallelBuilding = true;

  env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";

  # ensure libsystem/ctype functions don't get duplicated when using clang
  configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "CFLAGS=-std=gnu89" ];

+4 −0
Original line number Diff line number Diff line
@@ -77,6 +77,10 @@ stdenv.mkDerivation (finalAttrs: {
    done
  '';

  # fixes:
  # sawfish.h:52:13: error: 'bool' cannot be defined via 'typedef'
  env.NIX_CFLAGS_COMPILE = "-std=gnu17";

  nativeInstallCheckInputs = [
    versionCheckHook
  ];