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