summary refs log tree commit diff
path: root/pkgs/development/ruby-modules/bundler-env
diff options
context:
space:
mode:
authorJudson <nyarly@gmail.com>2017-06-09 09:04:33 -0700
committerJudson <nyarly@gmail.com>2017-06-09 09:04:33 -0700
commit964d9b7a067fc48d9774c5bff37d7fff41158f5a (patch)
tree5d5ace6a96680f7fdfa88efe93a62847ce8097dd /pkgs/development/ruby-modules/bundler-env
parent0bde4071fcd056172405005e7c99a56287e3477c (diff)
downloadnixpkgs-964d9b7a067fc48d9774c5bff37d7fff41158f5a.tar
nixpkgs-964d9b7a067fc48d9774c5bff37d7fff41158f5a.tar.gz
nixpkgs-964d9b7a067fc48d9774c5bff37d7fff41158f5a.tar.bz2
nixpkgs-964d9b7a067fc48d9774c5bff37d7fff41158f5a.tar.lz
nixpkgs-964d9b7a067fc48d9774c5bff37d7fff41158f5a.tar.xz
nixpkgs-964d9b7a067fc48d9774c5bff37d7fff41158f5a.tar.zst
nixpkgs-964d9b7a067fc48d9774c5bff37d7fff41158f5a.zip
Made gemdir handling into a common function
Diffstat (limited to 'pkgs/development/ruby-modules/bundler-env')
-rw-r--r--pkgs/development/ruby-modules/bundler-env/default.nix18
1 files changed, 1 insertions, 17 deletions
diff --git a/pkgs/development/ruby-modules/bundler-env/default.nix b/pkgs/development/ruby-modules/bundler-env/default.nix
index 89fafb5f230..a72647fb00a 100644
--- a/pkgs/development/ruby-modules/bundler-env/default.nix
+++ b/pkgs/development/ruby-modules/bundler-env/default.nix
@@ -27,23 +27,7 @@ let
     else if pname != null then "${toString pname}-${basicEnv.gems."${pname}".version}"
     else throw "bundlerEnv: either pname or name must be set";
 
-  gemfile' =
-    if gemfile == null then gemdir + "/Gemfile"
-    else gemfile;
-
-  lockfile' =
-    if lockfile == null then gemdir + "/Gemfile.lock"
-    else lockfile;
-
-  gemset' =
-    if gemset == null then gemdir + "/gemset.nix"
-    else gemset;
-
-  basicEnv = (callPackage ../bundled-common {}) (args // { inherit pname name gemdir;
-    gemfile = gemfile';
-    lockfile  = lockfile';
-    gemset = gemset';
-  });
+  basicEnv = (callPackage ../bundled-common {}) (args // { inherit pname name; });
 
   inherit (basicEnv) envPaths;
   # Idea here is a mkDerivation that gen-bin-stubs new stubs "as specified" -