diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-10-30 14:13:47 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-10-30 15:21:02 +0100 |
commit | 58e9440b8983c2e0dbab667dc7944e8af9955a35 (patch) | |
tree | 68b9301e2c0de5aef9911fd6737de9d9fd59153d /nixos | |
parent | 3e732f65cbb10746d8fd84f54c750045a7ef8bbe (diff) | |
download | nixlib-58e9440b8983c2e0dbab667dc7944e8af9955a35.tar nixlib-58e9440b8983c2e0dbab667dc7944e8af9955a35.tar.gz nixlib-58e9440b8983c2e0dbab667dc7944e8af9955a35.tar.bz2 nixlib-58e9440b8983c2e0dbab667dc7944e8af9955a35.tar.lz nixlib-58e9440b8983c2e0dbab667dc7944e8af9955a35.tar.xz nixlib-58e9440b8983c2e0dbab667dc7944e8af9955a35.tar.zst nixlib-58e9440b8983c2e0dbab667dc7944e8af9955a35.zip |
Add option to link additional package outputs into system.path
This is necessary to get stuff like separate manpages, info files, debug symbols, etc.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/config/system-path.nix | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix index c6c20903a2cf..8701b714eeca 100644 --- a/nixos/modules/config/system-path.nix +++ b/nixos/modules/config/system-path.nix @@ -71,8 +71,16 @@ in # to work. default = []; example = ["/"]; - description = "List of directories to be symlinked in `/run/current-system/sw'."; + description = "List of directories to be symlinked in <filename>/run/current-system/sw</filename>."; }; + + outputsToLink = mkOption { + type = types.listOf types.str; + default = []; + example = [ "doc" ]; + description = "List of package outputs to be symlinked into <filename>/run/current-system/sw</filename>."; + }; + }; system = { @@ -119,7 +127,7 @@ in system.path = pkgs.buildEnv { name = "system-path"; paths = config.environment.systemPackages; - inherit (config.environment) pathsToLink; + inherit (config.environment) pathsToLink outputsToLink; ignoreCollisions = true; # !!! Hacky, should modularise. postBuild = |