about summary refs log tree commit diff
path: root/pkgs/build-support/agda/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2015-05-09 00:58:18 +0000
committerJohn Ericson <Ericson2314@Yahoo.com>2015-05-17 20:15:09 -0400
commit45052c02a8b27f76a0a4ad9d43a37f7e23d637eb (patch)
treee7ee2e3317c6c55d7a421699760d4a66fa35656b /pkgs/build-support/agda/default.nix
parent705c4d7b49a7a824be70b6ead4799dfe328df783 (diff)
downloadnixlib-45052c02a8b27f76a0a4ad9d43a37f7e23d637eb.tar
nixlib-45052c02a8b27f76a0a4ad9d43a37f7e23d637eb.tar.gz
nixlib-45052c02a8b27f76a0a4ad9d43a37f7e23d637eb.tar.bz2
nixlib-45052c02a8b27f76a0a4ad9d43a37f7e23d637eb.tar.lz
nixlib-45052c02a8b27f76a0a4ad9d43a37f7e23d637eb.tar.xz
nixlib-45052c02a8b27f76a0a4ad9d43a37f7e23d637eb.tar.zst
nixlib-45052c02a8b27f76a0a4ad9d43a37f7e23d637eb.zip
agda: Replace `eval` with `runHook`
This is what haskell-ng does, so I figure it is the right thing to
do.
Diffstat (limited to 'pkgs/build-support/agda/default.nix')
-rw-r--r--pkgs/build-support/agda/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/build-support/agda/default.nix b/pkgs/build-support/agda/default.nix
index a137704a30c7..03a417a37847 100644
--- a/pkgs/build-support/agda/default.nix
+++ b/pkgs/build-support/agda/default.nix
@@ -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