mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
devenv: include proxy binary and use mold on Linux (#563261)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
useMoldLinker,
|
||||
fetchFromGitHub,
|
||||
gitMinimal,
|
||||
makeBinaryWrapper,
|
||||
@@ -42,8 +43,11 @@ let
|
||||
version = devenvNixVersion;
|
||||
}
|
||||
);
|
||||
buildRustPackage = rustPlatform.buildRustPackage.override {
|
||||
stdenv = if stdenv.hostPlatform.isLinux then useMoldLinker stdenv else stdenv;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
buildRustPackage {
|
||||
pname = "devenv";
|
||||
inherit version;
|
||||
|
||||
@@ -59,6 +63,7 @@ rustPlatform.buildRustPackage {
|
||||
env = {
|
||||
RUSTFLAGS = "--cfg tracing_unstable";
|
||||
LIBSQLITE3_SYS_USE_PKG_CONFIG = "1";
|
||||
OPENSSL_NO_VENDOR = "1";
|
||||
DEVENV_IS_RELEASE = true;
|
||||
};
|
||||
|
||||
@@ -67,6 +72,8 @@ rustPlatform.buildRustPackage {
|
||||
"devenv"
|
||||
"-p"
|
||||
"devenv-run-tests"
|
||||
"-p"
|
||||
"devenv-proxy"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
Reference in New Issue
Block a user