summary refs log tree commit diff
path: root/pkgs/development/ruby-modules/bundled-common/default.nix
diff options
context:
space:
mode:
authorAneesh Agrawal <aneeshusa@gmail.com>2017-10-05 04:28:45 -0400
committerAneesh Agrawal <aneeshusa@gmail.com>2018-01-04 02:28:33 -0500
commit8686b98612dc41d14df2a1f09a313d9084e5f6b6 (patch)
tree577aa92b1a27db846c3013c1cfcb22917c7d2834 /pkgs/development/ruby-modules/bundled-common/default.nix
parentaa9fc7ee25e6440be461b4d58b54ef8707076865 (diff)
downloadnixpkgs-8686b98612dc41d14df2a1f09a313d9084e5f6b6.tar
nixpkgs-8686b98612dc41d14df2a1f09a313d9084e5f6b6.tar.gz
nixpkgs-8686b98612dc41d14df2a1f09a313d9084e5f6b6.tar.bz2
nixpkgs-8686b98612dc41d14df2a1f09a313d9084e5f6b6.tar.lz
nixpkgs-8686b98612dc41d14df2a1f09a313d9084e5f6b6.tar.xz
nixpkgs-8686b98612dc41d14df2a1f09a313d9084e5f6b6.tar.zst
nixpkgs-8686b98612dc41d14df2a1f09a313d9084e5f6b6.zip
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.
Diffstat (limited to 'pkgs/development/ruby-modules/bundled-common/default.nix')
-rw-r--r--pkgs/development/ruby-modules/bundled-common/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/ruby-modules/bundled-common/default.nix b/pkgs/development/ruby-modules/bundled-common/default.nix
index 64a88d8f7b8..1f31aec886a 100644
--- a/pkgs/development/ruby-modules/bundled-common/default.nix
+++ b/pkgs/development/ruby-modules/bundled-common/default.nix
@@ -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;