Need to handle "null" mainGems

Not every gem package uses pname, nor should it.
This commit is contained in:
Judson 2017-02-19 10:51:35 -08:00
parent 2b9c7b4268
commit 3c9941114f
No known key found for this signature in database
GPG Key ID: 1817B08954BF0B7D

View File

@ -105,7 +105,9 @@ let
gems = lib.flip lib.mapAttrs configuredGemset (name: attrs: buildGem name attrs);
maybeCopyAll = { usesGemspec ? false, ...}@main:
maybeCopyAll = main: if main == null then "" else copyIfUseGemspec main;
copyIfUseGemspec = { usesGemspec ? false, ...}@main:
(if usesGemspec then ''
cp -a ${gemdir}/* $out/
'' else ""