gem build updates

This commit is contained in:
Joel Taylor 2014-08-13 12:13:27 -07:00 committed by Charles Strahan
parent 763975d2cf
commit 081343f099

View File

@ -29,14 +29,21 @@ in ruby.stdenv.mkDerivation (attrs // {
}; };
unpackPhase = '' unpackPhase = ''
gem unpack $src --target=gem-build if test -d $src; then
cd gem-build/* cd $src
else
gem unpack $src --target=gem-build
cd gem-build/*
fi
''; '';
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
${git}/bin/git init test -d .git || {
${git}/bin/git add . chmod 755 .
${git}/bin/git init
${git}/bin/git add .
}
if gem build *.gemspec; then if gem build *.gemspec; then
export src=*.gem export src=*.gem
else else