Skip to content

Commit 171d4f6

Browse files
committed
a horrible hack
1 parent 2517023 commit 171d4f6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use shell
1+
use nix
22

33
toolchain_path="./.cargo/rust-toolchain.toml"
44
if rg -q "nightly" "$toolchain_path"; then

shell.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,17 @@
22

33
pkgs.mkShell {
44
buildInputs = with pkgs; [
5+
openssl
56
openssl.dev
7+
patchelf
68
];
79
nativeBuildInputs = with pkgs; [
10+
openssl.dev
811
pkg-config
912
];
13+
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
14+
#wtf, nix
15+
shellHook = ''
16+
patchelf --set-rpath ${pkgs.openssl.out}/lib target/debug/v_exchanges
17+
'';
1018
}
11-

0 commit comments

Comments
 (0)