From 637fcf25937b0d24c6cadb752078bee7105ca3f9 Mon Sep 17 00:00:00 2001 From: Nathan van Doorn Date: Tue, 16 Feb 2021 14:26:06 +0000 Subject: [PATCH] j: fix build --- pkgs/development/interpreters/j/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/interpreters/j/default.nix b/pkgs/development/interpreters/j/default.nix index ab64505e091d..8875a9cf55eb 100644 --- a/pkgs/development/interpreters/j/default.nix +++ b/pkgs/development/interpreters/j/default.nix @@ -30,6 +30,10 @@ stdenv.mkDerivation rec { # Causes build failure due to warning hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow"; + # Causes build failure due to warning + # https://github.com/jsoftware/jsource/issues/16 + NIX_CFLAGS_COMPILE = "-Wno-error=return-local-addr"; + buildPhase = '' export SOURCE_DIR=$(pwd) export HOME=$TMPDIR