Skip to content

Commit

Permalink
Include git and python as build-tools for tests
Browse files Browse the repository at this point in the history
This is needed to make sure the Nix package works correctly.
  • Loading branch information
Rufflewind committed Mar 24, 2015
1 parent 7233248 commit e95febf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Setup.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module Main (main) where

import Distribution.Simple
import Distribution.Simple.Program (simpleProgram)

main :: IO ()
main = defaultMainWithHooks autoconfUserHooks
{ hookedPrograms = [simpleProgram "git", simpleProgram "python"] }
3 changes: 2 additions & 1 deletion directory.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description:
This library provides a basic set of operations for manipulating files and
directories in a portable way.
category: System
build-type: Configure
build-type: Custom
cabal-version: >= 1.10
tested-with: GHC>=7.4.1

Expand Down Expand Up @@ -86,6 +86,7 @@ test-suite test
other-extensions: CPP ForeignFunctionInterface
ghc-options: -Wall
hs-source-dirs: tools
build-tools: git, python
main-is: dispatch-tests.hs
type: exitcode-stdio-1.0
build-depends: base, directory

0 comments on commit e95febf

Please sign in to comment.