2020-04-24 23:36:52 +00:00
|
|
|
{ lib, sbt, makeWrapper, boehmgc, libunwind, re2, llvmPackages, zlib }:
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
sbt.overrideAttrs(previousAttrs: {
|
|
|
|
nativeBuildInputs = (previousAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
postFixup = (previousAttrs.postFixup or "") + ''
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapProgram $out/bin/sbt \
|
|
|
|
--set CLANG_PATH "${llvmPackages.clang}/bin/clang" \
|
|
|
|
--set CLANGPP_PATH "${llvmPackages.clang}/bin/clang" \
|
2024-04-21 15:54:59 +00:00
|
|
|
--set CPATH "${lib.makeSearchPathOutput "dev" "include" [ re2 zlib boehmgc libunwind llvmPackages.libcxx ]}/c++/v1" \
|
|
|
|
--set LIBRARY_PATH "${lib.makeLibraryPath [ re2 zlib boehmgc libunwind llvmPackages.libcxx ]}" \
|
|
|
|
--set NIX_CFLAGS_LINK "-lc++"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
})
|