mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -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,
|
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;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue