[commit: packages/Win32] fix-appveyor-curl-ussue, master: Encode platform requirement in cabal meta-data (#80) (6832841)

git at git.haskell.org git at git.haskell.org
Mon Apr 17 21:28:50 UTC 2017


Repository : ssh://git@git.haskell.org/Win32

On branches: fix-appveyor-curl-ussue,master
Link       : http://git.haskell.org/packages/Win32.git/commitdiff/6832841df4499d30b04f012c90f12f30350a3857

>---------------------------------------------------------------

commit 6832841df4499d30b04f012c90f12f30350a3857
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sat Mar 18 11:23:58 2017 +0100

    Encode platform requirement in cabal meta-data (#80)
    
    This mirrors a similar provision made in the `unix` recent package versions which contain
    the dual `if !os(windows)`-unbuildable construct.


>---------------------------------------------------------------

6832841df4499d30b04f012c90f12f30350a3857
 Win32.cabal | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Win32.cabal b/Win32.cabal
index 5e144cc..691625d 100644
--- a/Win32.cabal
+++ b/Win32.cabal
@@ -18,6 +18,11 @@ extra-source-files:
         changelog.md
 
 Library
+    if !os(windows)
+        -- This package requires Windows to build
+        build-depends: unbuildable<0
+        buildable: False
+
     build-depends:	base >= 4.5 && < 5, bytestring, filepath
     ghc-options:    -Wall -fno-warn-name-shadowing
     cc-options:     -fno-strict-aliasing



More information about the ghc-commits mailing list