3
0
Fork 0
forked from mirrors/nixpkgs

importGems now accepts an attrset

This commit is contained in:
Alexander Flatter 2014-09-17 15:13:47 +02:00 committed by Charles Strahan
parent 5b928301c1
commit b4c81a1f15

View file

@ -48,7 +48,7 @@ in
importGems = file: args:
let
# 1. Load set of gem names and versions from a bundix-created expression.
gemset = callPackage file { };
gemset = if (builtins.isAttrs file) then file else (callPackage file { });
# 2. Allow gems to be overriden by providing a derivation yourself.
config = gemset // (args gemset);
# 3.