mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
* Typo.
svn path=/nixpkgs/trunk/; revision=15699
This commit is contained in:
parent
fb087d2598
commit
8d7bf1a11e
@ -21,13 +21,13 @@ rec {
|
|||||||
then attrByPath (tail attrPath) default (getAttr attr e)
|
then attrByPath (tail attrPath) default (getAttr attr e)
|
||||||
else default;
|
else default;
|
||||||
|
|
||||||
# keep compatibility for some time. will be removed soon (the name getAttr
|
/* Backwards compatibility hack: lib.attrByPath used to be called
|
||||||
# should only be used for the builtins primop)
|
lib.getAttr, which was confusing given that there was also a
|
||||||
getAttr = a : b : if isString a
|
builtins.getAttr. Eventually we'll drop this hack and
|
||||||
then
|
lib.getAttr will just be an alias for builtins.getAttr. */
|
||||||
# should have been called from builtins scope. Don't mind. use builtin function
|
getAttr = a: b: if isString a
|
||||||
builtins.getAttr a b
|
then builtins.getAttr a b
|
||||||
else c : builtins.trace "depreceated usage of lib.getAttr!" (attrByPath a b c);
|
else c: builtins.trace "Deprecated use of lib.getAttr!" (attrByPath a b c);
|
||||||
|
|
||||||
|
|
||||||
getAttrFromPath = attrPath: set:
|
getAttrFromPath = attrPath: set:
|
||||||
|
Loading…
Reference in New Issue
Block a user