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
Type:: ${value.type}
${ if pkgs.lib.hasAttr "default" value
${ if lib.hasAttr "default" value
then ''
Default::
+
@ -114,7 +114,7 @@ let
then "Read Only:: {blank}"
else ""
}
${ if pkgs.lib.hasAttr "example" value
${ if lib.hasAttr "example" value
then ''
Example::
+
@ -129,7 +129,7 @@ let
in rec {
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"
{ meta.description = "List of NixOS options in JSON format";