Merge pull request #698 from mitchellh/update-zig

update zig
This commit is contained in:
Mitchell Hashimoto
2023-10-17 13:32:42 -07:00
committed by GitHub
5 changed files with 16 additions and 15 deletions

View File

@ -8,8 +8,8 @@ jobs:
os: [ubuntu-latest]
target: [
aarch64-linux-gnu,
x86_64-linux-gnu,
aarch64-linux,
x86_64-linux,
# No windows support currently.
# i386-windows,
# x86_64-windows-gnu,

View File

@ -19,7 +19,7 @@ const Version = @import("src/build/Version.zig");
// but we liberally update it. In the future, we'll be more careful about
// using released versions so that package managers can integrate better.
comptime {
const required_zig = "0.12.0-dev.706+62a0fbdae";
const required_zig = "0.12.0-dev.983+78f2ae7f2";
const current_zig = builtin.zig_version;
const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable;
if (current_zig.order(min_zig) == .lt) {
@ -690,7 +690,7 @@ fn addDeps(
// C files
step.linkLibC();
step.addIncludePath(.{ .path = "src/stb" });
step.addCSourceFiles(&.{"src/stb/stb.c"}, &.{});
step.addCSourceFiles(.{ .files = &.{"src/stb/stb.c"} });
// If we're building a lib we have some different deps
const lib = step.kind == .lib;

View File

@ -1,6 +1,7 @@
.{
.name = "ghostty",
.version = "0.1.0",
.paths = .{""},
.dependencies = .{
// Zig libs
.libxev = .{
@ -8,12 +9,12 @@
.hash = "1220f34357168affd9aab1a3fcafcaff093c44beb75ce1d4d4b75490e90729221771",
},
.mach_glfw = .{
.url = "https://github.com/hexops/mach-glfw/archive/321efd4065b57e31d8ab0bce720852c1d680d443.tar.gz",
.hash = "122002e355cf42b8d257efc95229c9ee6be4cca189c1718f86179cb7c21225beeb75",
.url = "https://github.com/hexops/mach-glfw/archive/16dc95cc7f74ebbbdd848d9a2c3cc4afc5717708.tar.gz",
.hash = "12202da6b8e9024c653f5d67f55a8065b401c42b3c08b69333d95400fe85d6019a59",
},
.zig_objc = .{
.url = "https://github.com/mitchellh/zig-objc/archive/01c16aaeeb674622f4a0e715aeeb16c8ce0bc30e.tar.gz",
.hash = "1220f9c919a1171ecf5d097a0d0349e8a9a01b45afa41006dd7eb0afa6243a5fa21f",
.url = "https://github.com/mitchellh/zig-objc/archive/146a50bb018d8e1ac5b9a1454d9db9a5eba5361f.tar.gz",
.hash = "12209f62dae4fccae478f5bd5670725c55308d8d985506110ba122ee2fb5e73122e0",
},
.zig_js = .{
.url = "https://github.com/mitchellh/zig-js/archive/60ac42ab137461cdba2b38cc6c5e16376470aae6.tar.gz",
@ -21,8 +22,8 @@
},
.glfw = .{
.url = "https://pkg.machengine.org/glfw/92abc63294d389c8f2a546686b6c072930b029e0.tar.gz",
.hash = "12205a6ce386007b97e22ef4b78a4f68c98af2cd6e1fde82589191fda79b9de54d0d",
.url = "https://pkg.machengine.org/glfw/14181bd28aa65915262ac3b4549bbd2dc70bbaa5.tar.gz",
.hash = "1220c6bb317ae3948b95161b9706777dde0509e72e8b35b62b92898aef801897d904",
},
// C libs

6
flake.lock generated
View File

@ -276,11 +276,11 @@
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1696680443,
"narHash": "sha256-Vz8BTmJ/xrEBrJJ0VLxBwWdCYP3kZrZ+2wJZqzBKGFk=",
"lastModified": 1697544523,
"narHash": "sha256-8IYxsrOyThEjhpyPmG2hDJgquWVpx7eOmNpcstjzmEw=",
"owner": "mitchellh",
"repo": "zig-overlay",
"rev": "333a455b680f418b583e84d66ceea4bb8189c576",
"rev": "02bddf965e12cd1224828152911943820665e651",
"type": "github"
},
"original": {

View File

@ -3,8 +3,8 @@
.version = "0.1.0",
.dependencies = .{
.macos_sdk = .{
.url = "https://github.com/mitchellh/zig-build-macos-sdk/archive/166ff65bb7688c0a08c4ea98166ec8300aa34128.tar.gz",
.hash = "1220bfe1b32491a3448dff55c1dc0c12aa573f1e5bdb0a962bfbadaaa59e4833798b",
.url = "https://github.com/mitchellh/zig-build-macos-sdk/archive/7e50d6ea241403615d5ebc9f1df4680d3907fa92.tar.gz",
.hash = "1220eb266898413ecfe5aaf7f29cc17eb479d046adecc94ebc7d5e1e807d2aabdd70",
},
},
}