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:
parent
705c4d7b49
commit
45052c02a8
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue