Skip to content

Commit

Permalink
root: workaround upsteam issue 14778
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Aug 25, 2024
1 parent e3ffd6b commit 4cfe15f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/applications/science/misc/root/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, fetchgit
, fetchurl
, makeWrapper
, writeText
, cmake
, coreutils
, git
Expand Down Expand Up @@ -225,7 +226,11 @@ stdenv.mkDerivation rec {
'';

# error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer
CXXFLAGS = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") "-faligned-allocation";
env.CXXFLAGS = lib.optionalString (stdenv.hostPlatform.system == "x86_64-darwin") "-faligned-allocation";

# workaround for
# https://github.com/root-project/root/issues/14778
env.NIX_LDFLAGS = lib.optionalString (!stdenv.isDarwin) "--version-script,${writeText "version.map" "ROOT { global: *; };"}";

# To use the debug information on the fly (without installation)
# add the outPath of root.debug into NIX_DEBUG_INFO_DIRS (in PATH-like format)
Expand Down

0 comments on commit 4cfe15f

Please sign in to comment.