From 823b1525b6dfa5312341e8dbe927b9e1c723e4c1 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 14 Apr 2018 18:58:44 +0100 Subject: ghc-package.eclass: allow override of default ghc and ghc-pkg tools This is mostly useful for cross-compilation and bootstrapping of ghc from non-standard compiler. Signed-off-by: Sergei Trofimovich --- eclass/ghc-package.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eclass/ghc-package.eclass') diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass index 737db1b362e5..bd08b01d04ca 100644 --- a/eclass/ghc-package.eclass +++ b/eclass/ghc-package.eclass @@ -16,14 +16,14 @@ inherit multiprocessing versionator # @DESCRIPTION: # returns the name of the ghc executable ghc-getghc() { - type -P ghc + type -P ${HC:-ghc} } # @FUNCTION: ghc-getghcpkg # @DESCRIPTION: # Internal function determines returns the name of the ghc-pkg executable ghc-getghcpkg() { - type -P ghc-pkg + type -P ${HC_PKG:-ghc-pkg} } # @FUNCTION: ghc-getghcpkgbin -- cgit v1.2.3-65-gdbad