Skip to content

Commit 76d8be5

Browse files
committed
Make git a test dependency of gitlib-cmdline.
Do it at the cabal level, so the nix expressions can easily be regenerated without fixups.
1 parent ef598be commit 76d8be5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

gitlib-cmdline/Setup.hs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
import Distribution.Simple
2-
main = defaultMain
1+
import Distribution.Simple
2+
import Distribution.Simple.Program
3+
4+
main :: IO ()
5+
main = defaultMainWithHooks simpleUserHooks
6+
{ hookedPrograms = [ simpleProgram "git" ]}

gitlib-cmdline/gitlib-cmdline.cabal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ License-file: LICENSE
66
License: MIT
77
Author: John Wiegley
88
Maintainer: [email protected]
9-
Build-Type: Simple
9+
Build-Type: Custom
1010
Cabal-Version: >=1.10
1111
Category: Git
1212

@@ -61,3 +61,5 @@ Test-suite smoke
6161
, tagged >= 0.2.3.1
6262
, text >= 0.11.2
6363
, transformers >= 0.2.2
64+
build-tools:
65+
git

0 commit comments

Comments
 (0)