Remove getConfig helper function

An expression like ‘getConfig [ "cabal" "libraryProfiling" ] false’
can be written more concisely as ‘config.cabal.libraryProfiling or false’.
This commit is contained in:
Eelco Dolstra
2012-09-19 13:56:56 -04:00
parent 0062d0f11d
commit e6077fbc46
11 changed files with 203 additions and 207 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{stdenv, getConfig, fetchurl, callPackage}:
{ stdenv, config, fetchurl, callPackage }:
let
inherit (stdenv.lib) fold optional;
@@ -36,7 +36,7 @@ in
if builtins.pathExists file then import (builtins.toPath file)
else null;
in
getConfig [ "gems" name ] fallback;
stdenv.lib.attrByPath [ "gems" name ] fallback config;
in
{
generated = getLocalGemFun "generated";