Updated to zig v0.15
Some checks failed
CI / x86_64-linux (push) Has been cancelled

- Added manifest.scm
This commit is contained in:
Aleksandr Lebedev 2025-11-19 12:15:22 +01:00
parent 68ab446d1f
commit 2935c84320
3 changed files with 14 additions and 3 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use guix

View file

@ -4,13 +4,18 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{}); const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{}); const optimize = b.standardOptimizeOption(.{});
const lib = b.addStaticLibrary(.{ const mod = b.addModule("vulkan-headers", .{
.name = "vulkan-headers",
.root_source_file = b.addWriteFiles().add("empty.c", ""),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
const lib = b.addLibrary(.{
.name = "vulkan-headers",
.linkage = .static,
.root_module = mod,
});
lib.addCSourceFile(.{ .file = b.addWriteFiles().add("empty.c", "") });
inline for (.{ "vk_video", "vulkan" }) |subdir| { inline for (.{ "vk_video", "vulkan" }) |subdir| {
lib.installHeadersDirectory(b.path("include/" ++ subdir), subdir, .{}); lib.installHeadersDirectory(b.path("include/" ++ subdir), subdir, .{});
} }

5
manifest.scm Normal file
View file

@ -0,0 +1,5 @@
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.
(specifications->manifest (list "zig@0.15" "git" "zig-zls@0.15"))