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 =
{
programs.nix-ld.enable = true;
programs.nix-ld.libraries =
defaultLibraries ++ cfg.extra-libraries ++ (if cfg.overkill.enable then overkillLibraries else [ ]); 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;
};
}; };
} }