ruby/bundlerApp: ignore gemset in env attribute set

The `gemset` field can be an attribute set as well in `buildRubyGem`,
however attribute sets can't be coerced to strings for the environment
set.

The impact should be relatively small as the environment variables are
only used by the `runCommand` script for `bunlderApp` which doesn't
refer to `gemset` at all.
This commit is contained in:
Maximilian Bosch 2019-07-28 15:52:54 +02:00
parent 0ad3568114
commit ebc4a417d0
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -36,7 +36,7 @@
let
basicEnv = (callPackage ../bundled-common {}) args;
cmdArgs = removeAttrs args [ "pname" "postBuild" "gemConfig" "passthru" ] // {
cmdArgs = removeAttrs args [ "pname" "postBuild" "gemConfig" "passthru" "gemset" ] // {
inherit preferLocalBuild allowSubstitutes; # pass the defaults
buildInputs = buildInputs ++ lib.optional (scripts != []) makeWrapper;