Unverified Commit 5e1f792d authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

libaom: fix build on FreeBSD (#387508)

parents b2e9c363 b456cbb7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -55,6 +55,12 @@ stdenv.mkDerivation rec {

  propagatedBuildInputs = lib.optional enableVmaf libvmaf;

  env = lib.optionalAttrs stdenv.hostPlatform.isFreeBSD {
    # This can be removed when we switch to libcxx from llvm 20
    # https://github.com/llvm/llvm-project/pull/122361
    NIX_CFLAGS_COMPILE = "-D_XOPEN_SOURCE=700";
  };

  preConfigure = ''
    # build uses `git describe` to set the build version
    cat > $NIX_BUILD_TOP/git << "EOF"