We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34197ea commit cbb218bCopy full SHA for cbb218b
2 files changed
system/programs/default.nix
@@ -2,6 +2,7 @@
2
imports = [
3
./fonts.nix
4
./home-manager.nix
5
+ ./nix-ld.nix
6
./xdg.nix
7
];
8
system/programs/nix-ld.nix
@@ -0,0 +1,17 @@
1
+{ pkgs, ... }:
+
+{
+ # Some tools ship prebuilt, generically dynamically-linked ELF binaries
+ # that expect the FHS loader at /lib64/ld-linux-x86-64.so.2. On NixOS that
+ # path is only stub-ld, so such binaries exit 127 ("NixOS cannot run
+ # dynamically linked executables intended for generic linux environments").
+ #
9
+ # So the fix for that is literally just this
10
+ programs.nix-ld = {
11
+ enable = true;
12
+ libraries = with pkgs; [
13
+ stdenv.cc.cc.lib # libstdc++ / libgcc_s for the Bun-compiled binary
14
+ zlib
15
+ ];
16
+ };
17
+}
0 commit comments