From 8e9796cae268eb66a64dd875f5ab2c254034a18c Mon Sep 17 00:00:00 2001 From: Lily Ballard Date: Wed, 10 Apr 2019 13:25:55 -0700 Subject: [PATCH] Make gemdir optional for bundlerApp Like `bundlerEnv`, the `gemdir` parameter to `bundlerApp` can be omitted if all 3 of `gemfile`, `lockfile`, and `gemset` are provided. --- pkgs/development/ruby-modules/bundler-app/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ruby-modules/bundler-app/default.nix b/pkgs/development/ruby-modules/bundler-app/default.nix index d0ad56538b9..a269e719564 100644 --- a/pkgs/development/ruby-modules/bundler-app/default.nix +++ b/pkgs/development/ruby-modules/bundler-app/default.nix @@ -12,8 +12,9 @@ { # use the name of the name in question; its version will be picked up from the gemset pname - # gemdir is the location of the Gemfile{,.lock} and gemset.nix; usually ./. -, gemdir + # Gemdir is the location of the Gemfile{,.lock} and gemset.nix; usually ./. + # This is required unless gemfile, lockfile, and gemset are all provided +, gemdir ? null # Exes is the list of executables provided by the gems in the Gemfile , exes ? [] # Scripts are ruby programs depend on gems in the Gemfile (e.g. scripts/rails)