1 { lib, sbt, makeWrapper, boehmgc, libunwind, re2, llvmPackages, zlib }:
3 sbt.overrideAttrs(previousAttrs: {
4 nativeBuildInputs = (previousAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];
6 postFixup = (previousAttrs.postFixup or "") + ''
7 wrapProgram $out/bin/sbt \
8 --set CLANG_PATH "${llvmPackages.clang}/bin/clang" \
9 --set CLANGPP_PATH "${llvmPackages.clang}/bin/clang" \
10 --set CPATH "${lib.makeSearchPathOutput "dev" "include" [ re2 zlib boehmgc libunwind llvmPackages.libcxx ]}/c++/v1" \
11 --set LIBRARY_PATH "${lib.makeLibraryPath [ re2 zlib boehmgc libunwind llvmPackages.libcxx ]}" \
12 --set NIX_CFLAGS_LINK "-lc++"