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 = ''
gem unpack $src --target=gem-build
cd gem-build/*
if test -d $src; then
cd $src
else
gem unpack $src --target=gem-build
cd gem-build/*
fi
'';
buildPhase = ''
runHook preBuild
${git}/bin/git init
${git}/bin/git add .
test -d .git || {
chmod 755 .
${git}/bin/git init
${git}/bin/git add .
}
if gem build *.gemspec; then
export src=*.gem
else