diff --git a/build.zig b/build.zig index f29f4cf..dca5b01 100644 --- a/build.zig +++ b/build.zig @@ -2,10 +2,14 @@ const std = @import("std"); pub fn build(b: *std.Build) void { const upstream = b.dependency("spdlog", .{}); - const lib = b.addStaticLibrary(.{ + const lib = b.addLibrary(.{ .name = "spdlog", - .target = b.standardTargetOptions(.{}), - .optimize = b.standardOptimizeOption(.{}), + .linkage = .static, + .root_module = b.addModule("spdlog", .{ + .target = b.standardTargetOptions(.{}), + .optimize = b.standardOptimizeOption(.{}), + .link_libc = true, + }), }); lib.linkLibCpp(); lib.addIncludePath(upstream.path("include")); diff --git a/build.zig.zon b/build.zig.zon index 61b365e..dd7cfba 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,12 +1,12 @@ .{ .name = .spdlog, - .version = "1.15.3", - .minimum_zig_version = "0.14.0", + .version = "1.16.0", + .minimum_zig_version = "0.15.0", .fingerprint = 0x19cef80094ea6f4, .dependencies = .{ .spdlog = .{ - .url = "https://github.com/gabime/spdlog/archive/refs/tags/v1.15.3.tar.gz", - .hash = "N-V-__8AAJQ8EgDzeZlwEXLTaVfJv-mmsc5kVpvmDQ7wy3Y6", + .url = "https://github.com/gabime/spdlog/archive/refs/tags/v1.16.0.tar.gz", + .hash = "N-V-__8AAP9pEgDmKW9wXR5HVBNwf_xFkTl6m0_wZn6yySIz", }, }, .paths = .{ diff --git a/manifest.scm b/manifest.scm new file mode 100644 index 0000000..5778a17 --- /dev/null +++ b/manifest.scm @@ -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"))