use nix-ld-rs

This commit is contained in:
Daylin Morgan 2024-07-10 13:21:04 -05:00
parent 91f5b3c059
commit 3c93835312
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -2,6 +2,7 @@
pkgs,
lib,
config,
enabled,
...
}:
let
@ -101,13 +102,14 @@ in
};
config =
mkIf cfg.enable
{
programs.nix-ld.enable = true;
programs.nix-ld.libraries =
let
libs =
defaultLibraries ++ cfg.extra-libraries ++ (if cfg.overkill.enable then overkillLibraries else [ ]);
in
mkIf cfg.enable {
programs.nix-ld = enabled // {
package = pkgs.nix-ld-rs;
libraries = libs;
};
};
}