mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 13:53:05 +00:00
aae9f2ca22
preserve old nativeBuildInputs which includes autoPatchelfHook which was
not there when this override was added
drop the `sha256` and `version` overrides which have never worked
properly because they haven't been overriding src.
`sha256` and `version` were added in 49c7bed763
15 lines
742 B
Nix
15 lines
742 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.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++"
|
|
'';
|
|
})
|