ruby-modules: Allow overriding gemset

This allows patching the gemset output by bundix from a default.nix
file, making it easier to perform updates since the bundix update no
longer has to be manually updated.
This commit is contained in:
Aneesh Agrawal 2017-10-05 04:28:45 -04:00
parent aa9fc7ee25
commit 8686b98612

View File

@ -29,7 +29,9 @@ with import ./functions.nix { inherit lib gemConfig; };
let
gemFiles = bundlerFiles args;
importedGemset = import gemFiles.gemset;
importedGemset = if builtins.typeOf gemFiles.gemset == "path"
then import gemFiles.gemset
else gemFiles.gemset;
filteredGemset = filterGemset { inherit ruby groups; } importedGemset;