importGems now accepts an attrset
This commit is contained in:
parent
5b928301c1
commit
b4c81a1f15
@ -48,7 +48,7 @@ in
|
|||||||
importGems = file: args:
|
importGems = file: args:
|
||||||
let
|
let
|
||||||
# 1. Load set of gem names and versions from a bundix-created expression.
|
# 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.
|
# 2. Allow gems to be overriden by providing a derivation yourself.
|
||||||
config = gemset // (args gemset);
|
config = gemset // (args gemset);
|
||||||
# 3.
|
# 3.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user