Nix-ld: Difference between revisions
TobiasBora (talk | contribs) |
TobiasBora (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
== Nix-ld == | == Nix-ld == | ||
Nix-ld is a module that is really practical to enable to have a more "traditional" experience in NixOS by recreating the loaders like <code>/lib/ld-linux.so.2</code>, needed to run any executable that is not patched by nix. It is not needed when installing regular packages "the nix way", but it is really handy to quickly test a binary not packaged for nix, or when developing, for instance in javascript/nodejs, since these languages often pre-download many binaries. | Nix-ld is a module that is really practical to enable to have a more "traditional" experience in NixOS by recreating the loaders like <code>/lib/ld-linux.so.2</code>, needed to run any executable that is not patched by nix. It is not needed when installing regular packages "the nix way", but it is really handy to quickly test a binary not packaged for nix, or when developing, for instance in javascript/nodejs, since these languages often pre-download many binaries (of course, a proper packaging is of course better, but potentially too tedious when quickly prototyping). | ||
To enable it, you just need to put in your <code>/etc/nixos/configuration.nix</code> the following:<syntaxhighlight lang="nixos">programs.nix-ld = { | To enable it, you just need to put in your <code>/etc/nixos/configuration.nix</code> the following:<syntaxhighlight lang="nixos">programs.nix-ld = { |