mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
systemPackages, makeLibraryPath: try to guess outputs
This commit is contained in:
parent
cefdc20c00
commit
c2fff72836
2 changed files with 12 additions and 2 deletions
|
@ -115,7 +115,15 @@ in
|
|||
|
||||
system.path = pkgs.buildEnv {
|
||||
name = "system-path";
|
||||
paths = config.environment.systemPackages;
|
||||
paths = let
|
||||
#outputs TODO: make it user-customizable?
|
||||
pkgOutputFun = pkg: lib.filter (p: p!=null) [
|
||||
(pkg.bin or (pkg.out or pkg))
|
||||
(pkg.man or null)
|
||||
(pkg.info or null)
|
||||
(pkg.doc or null)
|
||||
];
|
||||
in lib.concatMap pkgOutputFun config.environment.systemPackages;
|
||||
inherit (config.environment) pathsToLink;
|
||||
ignoreCollisions = true;
|
||||
# !!! Hacky, should modularise.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue