587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
14 lines
687 B
Nix
14 lines
687 B
Nix
{ lib, sbt, makeWrapper, boehmgc, libunwind, re2, llvmPackages, zlib }:
|
|
|
|
sbt.overrideAttrs(previousAttrs: {
|
|
nativeBuildInputs = (previousAttrs.nativeBuildInputs or [ ]) ++ [ makeWrapper ];
|
|
|
|
postFixup = (previousAttrs.postFixup or "") + ''
|
|
wrapProgram $out/bin/sbt \
|
|
--set CLANG_PATH "${llvmPackages.clang}/bin/clang" \
|
|
--set CLANGPP_PATH "${llvmPackages.clang}/bin/clang" \
|
|
--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++"
|
|
'';
|
|
})
|