reorder gem phases
This commit is contained in:
parent
05238cd353
commit
9c8c4c8655
@ -3,7 +3,7 @@
|
|||||||
{ name
|
{ name
|
||||||
, namePrefix ? "ruby${ruby.majorVersion}" + "-"
|
, namePrefix ? "ruby${ruby.majorVersion}" + "-"
|
||||||
, buildInputs ? []
|
, buildInputs ? []
|
||||||
, doCheck ? false
|
, doCheck ? false # TODO: fix this
|
||||||
, dontBuild ? true
|
, dontBuild ? true
|
||||||
, meta ? {}
|
, meta ? {}
|
||||||
, gemPath ? []
|
, gemPath ? []
|
||||||
@ -37,19 +37,10 @@ in ruby.stdenv.mkDerivation (attrs // {
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
checkPhase = ''
|
||||||
runHook preBuild
|
runHook preCheck
|
||||||
test -d .git || {
|
${attrs.checkPhase or "${rake}/bin/rake spec"}
|
||||||
chmod 755 .
|
runHook postCheck
|
||||||
${git}/bin/git init
|
|
||||||
${git}/bin/git add .
|
|
||||||
}
|
|
||||||
if gem build *.gemspec; then
|
|
||||||
export src=*.gem
|
|
||||||
else
|
|
||||||
echo >&2 "gemspec missing, not rebuilding gem"
|
|
||||||
fi
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user