pkgs.lib -> lib

This commit is contained in:
Domen Kožar 2019-08-12 11:46:53 +02:00
parent 6cf861c617
commit dcd50c0ea0
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246

View File

@ -100,7 +100,7 @@ let
=== details === details
Type:: ${value.type} Type:: ${value.type}
${ if pkgs.lib.hasAttr "default" value ${ if lib.hasAttr "default" value
then '' then ''
Default:: Default::
+ +
@ -114,7 +114,7 @@ let
then "Read Only:: {blank}" then "Read Only:: {blank}"
else "" else ""
} }
${ if pkgs.lib.hasAttr "example" value ${ if lib.hasAttr "example" value
then '' then ''
Example:: Example::
+ +
@ -129,7 +129,7 @@ let
in rec { in rec {
inherit optionsNix; inherit optionsNix;
optionsAsciiDoc = pkgs.lib.concatStringsSep "\n" (pkgs.lib.mapAttrsToList singleAsciiDoc optionsNix); optionsAsciiDoc = lib.concatStringsSep "\n" (lib.mapAttrsToList singleAsciiDoc optionsNix);
optionsJSON = pkgs.runCommand "options.json" optionsJSON = pkgs.runCommand "options.json"
{ meta.description = "List of NixOS options in JSON format"; { meta.description = "List of NixOS options in JSON format";