[PR #400] [MERGED] Zig package #481

Closed
opened 2026-05-05 12:17:05 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jmcnamara/libxlsxwriter/pull/400
Author: @kassane
Created: 4/23/2023
Status: Merged
Merged: 5/12/2023
Merged by: @jmcnamara

Base: mainHead: zig-pkg


📝 Commits (2)

  • f84a8c3 zig build
  • 0aa9fa2 Merge branch 'jmcnamara:main' into zig-pkg

📊 Changes

3 files changed (+75 additions, -0 deletions)

View changed files

📝 .gitignore (+3 -0)
build.zig (+66 -0)
build.zig.zon (+6 -0)

📄 Description

closes #401

How to use

e.g:

  • build.zig
    const libxlsxwriter_dep = b.dependency("libxlsxwriter", .{ // <== as declared in build.zig.zon
        .target = target, // the same as passing `-Dtarget=<...>` to the library's build.zig script
        .optimize = optimize, // ditto for `-Doptimize=<...>`
    });
    const libxlsxwriter = libxlsxwriter_dep.artifact("xlsxwriter"); // <== has the location of the dependency files (libxlsxwriter)
    /// your executable config
    exe.linkLibrary(libxlsxwriter); // <== link libxlsxwriter
    exe.installLibraryHeaders(libxlsxwriter); // <== get copy libxlsxwriter headers to zig-out/include 
  • build.zig.zon
.{
    .name = "example",
    .version = "0.1.0",
    .dependencies = .{
        .libxlsxwriter = .{
            .url = "https://github.com/jmcnamara/libxlsxwriter/archive/[tag/commit-hash].tar.gz",
            .hash = "[multihash - sha256-2]",
        },
    },
}

More info about zig-pkg


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jmcnamara/libxlsxwriter/pull/400 **Author:** [@kassane](https://github.com/kassane) **Created:** 4/23/2023 **Status:** ✅ Merged **Merged:** 5/12/2023 **Merged by:** [@jmcnamara](https://github.com/jmcnamara) **Base:** `main` ← **Head:** `zig-pkg` --- ### 📝 Commits (2) - [`f84a8c3`](https://github.com/jmcnamara/libxlsxwriter/commit/f84a8c33202c43a01514149d7e9534166131d575) zig build - [`0aa9fa2`](https://github.com/jmcnamara/libxlsxwriter/commit/0aa9fa216ff56aa74af040aebd71063ad4bd52e3) Merge branch 'jmcnamara:main' into zig-pkg ### 📊 Changes **3 files changed** (+75 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+3 -0) ➕ `build.zig` (+66 -0) ➕ `build.zig.zon` (+6 -0) </details> ### 📄 Description closes #401 ### How to use * Download [Zig v0.11 or higher](https://ziglang.org/download) * Make on your project `build.zig` & `build.zig.zon` file e.g: * **build.zig** ```zig const libxlsxwriter_dep = b.dependency("libxlsxwriter", .{ // <== as declared in build.zig.zon .target = target, // the same as passing `-Dtarget=<...>` to the library's build.zig script .optimize = optimize, // ditto for `-Doptimize=<...>` }); const libxlsxwriter = libxlsxwriter_dep.artifact("xlsxwriter"); // <== has the location of the dependency files (libxlsxwriter) /// your executable config exe.linkLibrary(libxlsxwriter); // <== link libxlsxwriter exe.installLibraryHeaders(libxlsxwriter); // <== get copy libxlsxwriter headers to zig-out/include ``` * **build.zig.zon** ```zig .{ .name = "example", .version = "0.1.0", .dependencies = .{ .libxlsxwriter = .{ .url = "https://github.com/jmcnamara/libxlsxwriter/archive/[tag/commit-hash].tar.gz", .hash = "[multihash - sha256-2]", }, }, } ``` ### More info about zig-pkg - https://github.com/ziglang/zig/pull/14265 - https://github.com/ziglang/zig/issues/14307 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 12:17:05 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#481
No description provided.