summary refs log tree commit diff
path: root/pkgs/development/ruby-modules/bundler-env
diff options
context:
space:
mode:
authorJudson <nyarly@gmail.com>2017-02-19 10:51:35 -0800
committerJudson <nyarly@gmail.com>2017-02-19 10:51:35 -0800
commit3c9941114f1c1801c388fbd1fc31907b14625b72 (patch)
tree33b5a87a32f9657dbfdeb499d045dc91e5c054a9 /pkgs/development/ruby-modules/bundler-env
parent2b9c7b4268709fef37158314da3a64295c4761c5 (diff)
downloadnixpkgs-3c9941114f1c1801c388fbd1fc31907b14625b72.tar
nixpkgs-3c9941114f1c1801c388fbd1fc31907b14625b72.tar.gz
nixpkgs-3c9941114f1c1801c388fbd1fc31907b14625b72.tar.bz2
nixpkgs-3c9941114f1c1801c388fbd1fc31907b14625b72.tar.lz
nixpkgs-3c9941114f1c1801c388fbd1fc31907b14625b72.tar.xz
nixpkgs-3c9941114f1c1801c388fbd1fc31907b14625b72.tar.zst
nixpkgs-3c9941114f1c1801c388fbd1fc31907b14625b72.zip
Need to handle "null" mainGems
Not every gem package uses pname, nor should it.
Diffstat (limited to 'pkgs/development/ruby-modules/bundler-env')
-rw-r--r--pkgs/development/ruby-modules/bundler-env/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/ruby-modules/bundler-env/default.nix b/pkgs/development/ruby-modules/bundler-env/default.nix
index e82a6af0085..ba9ea5f3fa8 100644
--- a/pkgs/development/ruby-modules/bundler-env/default.nix
+++ b/pkgs/development/ruby-modules/bundler-env/default.nix
@@ -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 ""