3
0
Fork 0
forked from mirrors/nixpkgs

agda: Replace eval with runHook

This is what haskell-ng does, so I figure it is the right thing to
do.
This commit is contained in:
John Ericson 2015-05-09 00:58:18 +00:00
parent 705c4d7b49
commit 45052c02a8

View file

@ -69,22 +69,22 @@ in
# configurePhase is idempotent
configurePhase = ''
eval "$preConfigure"
runHook preConfigure
export PATH="${self.agdaWrapper}/bin:$PATH"
eval "$postConfigure"
runHook postConfigure
'';
buildPhase = ''
eval "$preBuild"
runHook preBuild
${Agda}/bin/agda ${self.buildFlags} ${self.everythingFile}
eval "$postBuild"
runHook postBuild
'';
installPhase = ''
eval "$preInstall"
runHook preInstall
mkdir -p $out/share/agda
cp -pR ${unwords self.sourceDirectories} ${mapInside self.topSourceDirectories} $out/share/agda
eval "$postInstall"
runHook postInstall
'';
};
in stdenv.mkDerivation