Skip to content

Commit 5ba11b2

Browse files
committed
Fix CI
1 parent b20f711 commit 5ba11b2

3 files changed

Lines changed: 47 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ jobs:
263263
- run: nix-build --arg compiler '${{ matrix.ghc }}' -A vulkan
264264
- run: nix-build --arg compiler '${{ matrix.ghc }}' -A VulkanMemoryAllocator
265265
- run: nix-build --arg compiler '${{ matrix.ghc }}' -A vulkan-utils
266+
- run: nix-build --arg compiler '${{ matrix.ghc }}' -A vulkan-utils-spirv
266267
- run: nix-build --arg compiler '${{ matrix.ghc }}' -A openxr
267268
- run: nix-build --arg compiler '${{ matrix.ghc }}' ./nix/haskell-packages.nix --arg openxrNoVulkan true -A openxr
268269
- run: nix-build --arg compiler '${{ matrix.ghc }}' -A vulkan-examples
@@ -328,7 +329,8 @@ jobs:
328329
sudo apt-get install fd-find
329330
- name: Check scripts with shellcheck
330331
run: |
331-
fdfind .sh$ . \
332+
fdfind '\.sh$' . \
333+
--type f \
332334
--exclude VulkanMemoryAllocator/VulkanMemoryAllocator \
333335
--exclude generate-new/Vulkan-Docs \
334336
--exclude generate-new/OpenXR-Docs \

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let
2121
(pkgs.haskell.lib.dontCheck vulkan)
2222
(pkgs.haskell.lib.dontCheck VulkanMemoryAllocator)
2323
] else
24-
[ vulkan vulkan-utils vulkan-init-sdl2 vulkan-init-glfw VulkanMemoryAllocator vulkan-examples openxr ]
24+
[ vulkan vulkan-utils vulkan-utils-spirv vulkan-init-sdl2 vulkan-init-glfw VulkanMemoryAllocator vulkan-examples openxr ]
2525
++ pkgs.lib.optional (p.ghc.version == generator-ghc-version) generate-new;
2626

2727
in if forShell then

nix/haskell-packages.nix

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ let
5353
modifier = drv: addExtraLibrary pkgs.vulkan-headers (mod drv);
5454
returnShellEnv = false;
5555
};
56+
vulkan-utils-spirv = self.developPackage {
57+
name = "vulkan-utils-spirv";
58+
root = gitignore ../utils-spirv;
59+
# tests compile GLSL fixtures with the glslang quasiquoters
60+
modifier = drv: addBuildTools [ pkgs.glslang ] (mod drv);
61+
returnShellEnv = false;
62+
};
5663
vulkan-init-sdl2 = self.developPackage {
5764
name = "vulkan-init-sdl2";
5865
root = gitignore ../utils-init/vulkan-init-sdl2;
@@ -116,6 +123,42 @@ let
116123

117124
binary-orphans = addBuildDepend self.OneTuple super.binary-orphans;
118125

126+
#
127+
# Dependencies for vulkan-utils-spirv, absent or too old in nixpkgs
128+
#
129+
# dontCheck: hedgehog property gives up on discards
130+
geomancy = dontCheck (self.callHackageDirect {
131+
pkg = "geomancy";
132+
ver = "0.3.0.1";
133+
sha256 = "0c0mm70hg1zv6di4y8z2j7a8xbrdxccqqv2v826jis7cyfznppgp";
134+
} { });
135+
gl-block = self.callHackageDirect {
136+
pkg = "gl-block";
137+
ver = "1.1";
138+
sha256 = "0d6gi2hi96r7yzwg7vmrz936d2wmn88qs09pqhzk1ph7qwjbaqx0";
139+
} { };
140+
spirv-enum = self.callHackageDirect {
141+
pkg = "spirv-enum";
142+
ver = "1.104.350.0";
143+
sha256 = "0pmj7a0sqvx2nlk7fl1yqlljxdrf91l0rzaa42fwjb39qg9hxzcf";
144+
} { };
145+
spirv-reflect-ffi = self.callHackageDirect {
146+
pkg = "spirv-reflect-ffi";
147+
ver = "0.4";
148+
sha256 = "1861z86hb5pdi2x9fagl9yqrsxvkcm0pr11il5mklhs99xzkh49x";
149+
} { };
150+
spirv-reflect-types = self.callHackageDirect {
151+
pkg = "spirv-reflect-types";
152+
ver = "0.4";
153+
sha256 = "1v5bip44jmzmcnlhjf8ckx8zz05f7fsx4d2idlkqs6q09zd7cb6n";
154+
} { };
155+
# dontCheck: test suite wants base >= 4.18
156+
webcolor-labels = dontCheck (self.callHackageDirect {
157+
pkg = "webcolor-labels";
158+
ver = "0.1.0.0";
159+
sha256 = "1cwjz31xiya9wmy0h0srn4f6brd4xh4hi0rh5ry80vkwqz7f3fhm";
160+
} { });
161+
119162
#
120163
# Overrides for generate
121164
#

0 commit comments

Comments
 (0)