- Added manifest.scm
This commit is contained in:
parent
68ab446d1f
commit
2935c84320
3 changed files with 14 additions and 3 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
use guix
|
||||
11
build.zig
11
build.zig
|
|
@ -4,13 +4,18 @@ pub fn build(b: *std.Build) void {
|
|||
const target = b.standardTargetOptions(.{});
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const lib = b.addStaticLibrary(.{
|
||||
.name = "vulkan-headers",
|
||||
.root_source_file = b.addWriteFiles().add("empty.c", ""),
|
||||
const mod = b.addModule("vulkan-headers", .{
|
||||
.target = target,
|
||||
.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| {
|
||||
lib.installHeadersDirectory(b.path("include/" ++ subdir), subdir, .{});
|
||||
}
|
||||
|
|
|
|||
5
manifest.scm
Normal file
5
manifest.scm
Normal 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"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue