From c7b5654a31a16fdb10c4c697ce35e5c8cf623b35 Mon Sep 17 00:00:00 2001 From: Josh Robson Chase Date: Mon, 19 Aug 2024 12:53:57 -0400 Subject: [PATCH] nix: add rustflags for soname --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index ddc1849..f84e256 100644 --- a/flake.nix +++ b/flake.nix @@ -110,9 +110,10 @@ CHALK_SOLVER_MAX_SIZE = 1500; OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib"; OPENSSL_INCLUDE_DIR = "${pkgs.openssl.dev}/include"; - RUSTC_WRAPPER="${pkgs.sccache}/bin/sccache"; + RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache"; JAVA_11_HOME = "${pkgs.openjdk11_headless}"; JAVA_17_HOME = "${pkgs.openjdk17_headless}"; + RUSTFLAGS = "-C link-arg=-Wl,-soname,libngrok_java.so"; buildInputs = with pkgs; [ rust-toolchain java-toolchain