* Export ../lib/default.nix.
svn path=/nixpkgs/trunk/; revision=6620
This commit is contained in:
parent
4287f142bb
commit
756d1aca79
@ -77,11 +77,11 @@ rec {
|
|||||||
|
|
||||||
useFromStdenv = hasIt: it: alternative: if hasIt then it else alternative;
|
useFromStdenv = hasIt: it: alternative: if hasIt then it else alternative;
|
||||||
|
|
||||||
inherit (import ../lib) getAttr;
|
library = import ../lib;
|
||||||
|
|
||||||
# Return an attribute from the Nixpkgs configuration file, or
|
# Return an attribute from the Nixpkgs configuration file, or
|
||||||
# a default value if the attribute doesn't exist.
|
# a default value if the attribute doesn't exist.
|
||||||
getConfig = attrPath: default: getAttr attrPath default config;
|
getConfig = attrPath: default: library.getAttr attrPath default config;
|
||||||
|
|
||||||
# The contents of the configuration file found at $NIXPKGS_CONFIG or
|
# The contents of the configuration file found at $NIXPKGS_CONFIG or
|
||||||
# $HOME/.nixpkgs/config.nix.
|
# $HOME/.nixpkgs/config.nix.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user