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 is idempotent
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
eval "$preConfigure"
|
runHook preConfigure
|
||||||
export PATH="${self.agdaWrapper}/bin:$PATH"
|
export PATH="${self.agdaWrapper}/bin:$PATH"
|
||||||
eval "$postConfigure"
|
runHook postConfigure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
eval "$preBuild"
|
runHook preBuild
|
||||||
${Agda}/bin/agda ${self.buildFlags} ${self.everythingFile}
|
${Agda}/bin/agda ${self.buildFlags} ${self.everythingFile}
|
||||||
eval "$postBuild"
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
eval "$preInstall"
|
runHook preInstall
|
||||||
mkdir -p $out/share/agda
|
mkdir -p $out/share/agda
|
||||||
cp -pR ${unwords self.sourceDirectories} ${mapInside self.topSourceDirectories} $out/share/agda
|
cp -pR ${unwords self.sourceDirectories} ${mapInside self.topSourceDirectories} $out/share/agda
|
||||||
eval "$postInstall"
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in stdenv.mkDerivation
|
in stdenv.mkDerivation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user