3
0
Fork 0
forked from mirrors/nixpkgs

eggDerivation: Move postInstall into installPhase.

This commit is contained in:
Moritz Ulrich 2014-10-15 12:07:31 +02:00
parent 36c5ec58c4
commit 8d5fe133bd

View file

@ -32,10 +32,6 @@ stdenv.mkDerivation ({
chicken-install -p $out ${stdenv.lib.concatStringsSep " " chickenInstallFlags}
runHook postInstall
'';
postInstall = ''
for f in $out/bin/*
do
wrapProgram $f \
@ -44,5 +40,7 @@ stdenv.mkDerivation ({
--prefix CHICKEN_INCLUDE_PATH \; \"$CHICKEN_INCLUDE_PATH\;$out/share/\" \
--prefix PATH : "$out/bin:${chicken}/bin:$CHICKEN_REPOSITORY_EXTRA:$CHICKEN_REPOSITORY"
done
runHook postInstall
'';
} // (builtins.removeAttrs args ["name" "buildInputs"]) // override)