mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
15 lines
659 B
Nix
15 lines
659 B
Nix
{ lib, sbt, makeWrapper, boehmgc, libunwind, re2, llvmPackages, zlib }:
|
|
|
|
sbt.overrideDerivation(old: {
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postFixup = ''
|
|
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.libcxxabi llvmPackages.libcxx ]}/c++/v1" \
|
|
--set LIBRARY_PATH "${lib.makeLibraryPath [ re2 zlib boehmgc libunwind llvmPackages.libcxxabi llvmPackages.libcxx ]}" \
|
|
--set NIX_CFLAGS_LINK "-lc++abi -lc++"
|
|
'';
|
|
})
|