buildRubyGem: don't use the bash 'type' variable name (#211899)

https://github.com/NixOS/nixpkgs/issues/211671

There is also a fix with an stdenv rebuild in staging, but we don't want to wait so long...

authored by Yureka and committed by GitHub 9f05e44d 2272f206

+3 -3
+3 -3
pkgs/development/ruby-modules/gem/default.nix
··· 86 86 inherit ruby; 87 87 inherit dontBuild; 88 88 inherit dontStrip; 89 - inherit type; 89 + gemType = type; 90 90 91 91 nativeBuildInputs = [ 92 92 ruby makeWrapper ··· 143 143 buildPhase = attrs.buildPhase or '' 144 144 runHook preBuild 145 145 146 - if [[ "$type" == "gem" ]]; then 146 + if [[ "$gemType" == "gem" ]]; then 147 147 if [[ -z "$gemspec" ]]; then 148 148 gemspec="$(find . -name '*.gemspec')" 149 149 echo "found the following gemspecs:" ··· 158 158 gempkg=$(echo "$output" | grep -oP 'File: \K(.*)') 159 159 160 160 echo "gem package built: $gempkg" 161 - elif [[ "$type" == "git" ]]; then 161 + elif [[ "$gemType" == "git" ]]; then 162 162 git init 163 163 # remove variations to improve the likelihood of a bit-reproducible output 164 164 rm -rf .git/logs/ .git/hooks/ .git/index .git/FETCH_HEAD .git/ORIG_HEAD .git/refs/remotes/origin/HEAD .git/config