diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2016-01-11 12:16:42 +0100 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2016-01-13 03:14:34 +0100 |
commit | 474c6e9ab033d605ec753ecb9041e3953778002f (patch) | |
tree | 04428961e3a6db660bc77ba868a7b1aa4dea9a56 /Setup.hs | |
parent | d942dbb8e6a605d336b6394de84589eb5e623aad (diff) |
Add `cabal` as a build-tool for Nix
Diffstat (limited to 'Setup.hs')
-rw-r--r-- | Setup.hs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,6 +6,7 @@ import Distribution.Simple.Install import Distribution.Simple.Register import Distribution.Simple.InstallDirs as ID import Distribution.Simple.LocalBuildInfo +import Distribution.Simple.Program import Distribution.PackageDescription import Control.Applicative @@ -17,7 +18,8 @@ import System.FilePath main :: IO () main = defaultMainWithHooks $ simpleUserHooks { instHook = inst, - copyHook = copy + copyHook = copy, + hookedPrograms = [ simpleProgram "cabal" ] } -- mostly copypasta from 'defaultInstallHook' |