Skip to content
This repository was archived by the owner on Oct 5, 2024. It is now read-only.

Commit 15e109d

Browse files
committed
fix(nix): Add autoPathelfHook
It should not be necessary to add this. However, the `LD_LIBRARY_PATH` is not set correctly in the `x86_64-linux` system. It takes me a rough time to figure out this. Sadly, I give up and add this to make it just work (not the best solution definitely).
1 parent dc9d0a2 commit 15e109d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

flake.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,18 @@
3737
);
3838
crate = crane'.buildPackage {
3939
src = ./.;
40-
nativeBuildInputs = [ pkgs.protobuf ];
40+
nativeBuildInputs = [
41+
pkgs.protobuf
42+
43+
# It should not be necessary to add this. However,
44+
# the LD_LIBRARY_PATH is not set correctly in the
45+
# x86_64-linux system.
46+
#
47+
# It takes me a rough time to figure out this.
48+
# Sadly, I give up and add this to make it just work.
49+
# (not the best solution definitely)
50+
pkgs.autoPatchelfHook
51+
];
4152
buildInputs = [
4253
pkgs.sqlite
4354
pkgs.libiconv

0 commit comments

Comments
 (0)