From ceb75f0fcd2678100d9f4975c2d3ebbf02c11495 Mon Sep 17 00:00:00 2001 From: Ivan Dimitrov Date: Thu, 13 Jul 2023 18:46:26 +0300 Subject: [PATCH] nix-ld --- configuration.nix | 1 + nix-ld.nix | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 nix-ld.nix diff --git a/configuration.nix b/configuration.nix index aa06a31..baaeb9c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -111,6 +111,7 @@ }; sway.enable = true; zsh.enable = true; + nix-ld.enable = true; }; users = { diff --git a/nix-ld.nix b/nix-ld.nix new file mode 100644 index 0000000..1e1b7a6 --- /dev/null +++ b/nix-ld.nix @@ -0,0 +1,7 @@ +with import {}; + mkShell { + NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [ + stdenv.cc.cc + ]; + NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker"; + }