mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 06:00:45 -06:00
use nix-ld-rs
This commit is contained in:
parent
91f5b3c059
commit
3c93835312
1 changed files with 10 additions and 8 deletions
|
@ -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 =
|
||||
|
||||
defaultLibraries ++ cfg.extra-libraries ++ (if cfg.overkill.enable then overkillLibraries else [ ]);
|
||||
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;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue