@@ -0,0 +1,158 @@
1+{ system
2+ , compiler
3+ , flags
4+ , pkgs
5+ , hsPkgs
6+ , pkgconfPkgs
7+ , errorHandler
8+ , config
9+ , ... }:
10+ {
11+ flags = {};
12+ package = {
13+ specVersion = "2.0";
14+ identifier = { name = "Win32"; version = "2.10.0.0"; };
15+ license = "BSD-3-Clause";
16+ copyright = "Alastair Reid, 1999-2003; shelarcy, 2012-2013; Tamar Christina, 2016-2018";
17+ maintainer = "Haskell Libraries <libraries@haskell.org>";
18+ author = "Alastair Reid, shelarcy, Tamar Christina";
19+ homepage = "https://github.com/haskell/win32";
20+ url = "";
21+ synopsis = "A binding to Windows Win32 API.";
22+ description = "This library contains direct bindings to the Windows Win32 APIs for Haskell.";
23+ buildType = "Simple";
24+ isLocal = true;
25+ detailLevel = "FullDetails";
26+ licenseFiles = [ "LICENSE" ];
27+ dataDir = ".";
28+ dataFiles = [];
29+ extraSrcFiles = [
30+ "include/diatemp.h"
31+ "include/dumpBMP.h"
32+ "include/ellipse.h"
33+ "include/errors.h"
34+ "include/Win32Aux.h"
35+ "include/win32debug.h"
36+ "include/alignment.h"
37+ "changelog.md"
38+ ];
39+ extraTmpFiles = [];
40+ extraDocFiles = [];
41+ };
42+ components = {
43+ "library" = {
44+ depends = [
45+ (hsPkgs."base" or (errorHandler.buildDepError "base"))
46+ (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
47+ (hsPkgs."filepath" or (errorHandler.buildDepError "filepath"))
48+ ] ++ (pkgs.lib).optional (!system.isWindows) (hsPkgs."unbuildable" or (errorHandler.buildDepError "unbuildable"));
49+ libs = [
50+ (pkgs."user32" or (errorHandler.sysDepError "user32"))
51+ (pkgs."gdi32" or (errorHandler.sysDepError "gdi32"))
52+ (pkgs."winmm" or (errorHandler.sysDepError "winmm"))
53+ (pkgs."advapi32" or (errorHandler.sysDepError "advapi32"))
54+ (pkgs."shell32" or (errorHandler.sysDepError "shell32"))
55+ (pkgs."shfolder" or (errorHandler.sysDepError "shfolder"))
56+ (pkgs."shlwapi" or (errorHandler.sysDepError "shlwapi"))
57+ (pkgs."msimg32" or (errorHandler.sysDepError "msimg32"))
58+ (pkgs."imm32" or (errorHandler.sysDepError "imm32"))
59+ ];
60+ build-tools = [
61+ (hsPkgs.buildPackages.hsc2hs.components.exes.hsc2hs or (pkgs.buildPackages.hsc2hs or (errorHandler.buildToolDepError "hsc2hs:hsc2hs")))
62+ ];
63+ buildable = if !system.isWindows then false else true;
64+ modules = [
65+ "Graphics/Win32/GDI"
66+ "Graphics/Win32/GDI/Bitmap"
67+ "Graphics/Win32/GDI/Brush"
68+ "Graphics/Win32/GDI/Clip"
69+ "Graphics/Win32/GDI/Font"
70+ "Graphics/Win32/GDI/Graphics2D"
71+ "Graphics/Win32/GDI/HDC"
72+ "Graphics/Win32/GDI/Palette"
73+ "Graphics/Win32/GDI/Path"
74+ "Graphics/Win32/GDI/Pen"
75+ "Graphics/Win32/GDI/Region"
76+ "Graphics/Win32/GDI/Types"
77+ "Graphics/Win32"
78+ "Graphics/Win32/Control"
79+ "Graphics/Win32/Dialogue"
80+ "Graphics/Win32/Icon"
81+ "Graphics/Win32/Key"
82+ "Graphics/Win32/Menu"
83+ "Graphics/Win32/Message"
84+ "Graphics/Win32/Misc"
85+ "Graphics/Win32/Resource"
86+ "Graphics/Win32/Window"
87+ "Graphics/Win32/LayeredWindow"
88+ "Graphics/Win32/GDI/AlphaBlend"
89+ "Graphics/Win32/Window/AnimateWindow"
90+ "Graphics/Win32/Window/HotKey"
91+ "Graphics/Win32/Window/IMM"
92+ "Graphics/Win32/Window/ForegroundWindow"
93+ "Graphics/Win32/Window/PostMessage"
94+ "Media/Win32"
95+ "System/Win32"
96+ "System/Win32/DebugApi"
97+ "System/Win32/DLL"
98+ "System/Win32/File"
99+ "System/Win32/FileMapping"
100+ "System/Win32/Info"
101+ "System/Win32/Path"
102+ "System/Win32/Mem"
103+ "System/Win32/MinTTY"
104+ "System/Win32/NLS"
105+ "System/Win32/Process"
106+ "System/Win32/Registry"
107+ "System/Win32/SimpleMAPI"
108+ "System/Win32/Time"
109+ "System/Win32/Console"
110+ "System/Win32/Security"
111+ "System/Win32/Types"
112+ "System/Win32/Shell"
113+ "System/Win32/Automation"
114+ "System/Win32/Automation/Input"
115+ "System/Win32/Automation/Input/Key"
116+ "System/Win32/Automation/Input/Mouse"
117+ "System/Win32/Console/CtrlHandler"
118+ "System/Win32/Console/HWND"
119+ "System/Win32/Console/Title"
120+ "System/Win32/Encoding"
121+ "System/Win32/Exception/Unsupported"
122+ "System/Win32/HardLink"
123+ "System/Win32/Info/Computer"
124+ "System/Win32/Info/Version"
125+ "System/Win32/String"
126+ "System/Win32/SymbolicLink"
127+ "System/Win32/Thread"
128+ "System/Win32/Utils"
129+ "System/Win32/Word"
130+ ];
131+ cSources = [
132+ "cbits/HsGDI.c"
133+ "cbits/HsWin32.c"
134+ "cbits/WndProc.c"
135+ "cbits/diatemp.c"
136+ "cbits/dumpBMP.c"
137+ "cbits/ellipse.c"
138+ "cbits/errors.c"
139+ "cbits/alphablend.c"
140+ ];
141+ includeDirs = [ "include" ];
142+ includes = [
143+ "alphablend.h"
144+ "diatemp.h"
145+ "dumpBMP.h"
146+ "ellipse.h"
147+ "errors.h"
148+ "HsGDI.h"
149+ "HsWin32.h"
150+ "Win32Aux.h"
151+ "win32debug.h"
152+ "windows_cconv.h"
153+ "WndProc.h"
154+ "alignment.h"
155+ ];
156+ };
157+ };
158+ } // rec { src = (pkgs.lib).mkDefault ../libraries/Win32; }