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