deps: update zig-nuplugin
All checks were successful
/ test (push) Successful in 58s

This commit is contained in:
LordMZTE 2024-08-23 13:54:58 +02:00
parent 852ce5e15c
commit e6795955c0
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
4 changed files with 22 additions and 16 deletions

View file

@ -4,8 +4,8 @@
.dependencies = .{
.nuplugin = .{
.url = "git+https://git.mzte.de/LordMZTE/zig-nuplugin.git#d733ba7da55b82f9307ca5eac4c9a2156937baaa",
.hash = "12206055a1e88695672cf43237969f557a519a71108463d8a931042fe47c8be1e087",
.url = "git+https://git.mzte.de/LordMZTE/zig-nuplugin.git#f0dce8826b2f33ef28566cbe1c00e277c61eec23",
.hash = "1220c92457012b1686c7d468f902b7883a37380da90721de80329d4abd00e67dea7a",
},
},

View file

@ -2,11 +2,13 @@
pkgs.linkFarm "zig-packages" [
# zig-args
{
name = "12206055a1e88695672cf43237969f557a519a71108463d8a931042fe47c8be1e087";
path = pkgs.fetchgit {
url = "https://git.mzte.de/LordMZTE/zig-nuplugin.git";
rev = "d733ba7da55b82f9307ca5eac4c9a2156937baaa";
hash = "sha256-UPVNM1nnF6FLHAs74HnIBy23W7MJnrXQ87+YeS6eYsE=";
name = "1220c92457012b1686c7d468f902b7883a37380da90721de80329d4abd00e67dea7a";
path = pkgs.fetchFromGitea {
domain = "git.mzte.de";
owner = "LordMZTE";
repo = "zig-nuplugin";
rev = "f0dce8826b2f33ef28566cbe1c00e277c61eec23";
hash = "sha256-sY+mpCgbrNXt/PJ73bCqWmRerAh4k/EyEZeeLEKD4MM=";
};
}
@ -15,8 +17,10 @@ pkgs.linkFarm "zig-packages" [
# getty-msgpack (zig-nuplugin dep)
{
name = "1220a8c39b96992f501dc0733e689ba099ab964ecda720b33070f2ed6251786b2438";
path = pkgs.fetchgit {
url = "https://git.mzte.de/LordMZTE/getty-msgpack.git";
path = pkgs.fetchFromGitea {
domain = "git.mzte.de";
owner = "LordMZTE";
repo = "getty-msgpack";
rev = "deb0e1dc33ee4f8240542f584729f2ee6fc24f49";
hash = "sha256-CurMto+CfypRpGYKiLdcfsYGQk/lexWc5n8y7LbbSSw=";
};
@ -25,8 +29,9 @@ pkgs.linkFarm "zig-packages" [
# getty (zig-nuplugin dep)
{
name = "12204235c113ed912d951e381066d587bb398b7175dc635c50c17864946bbd570879";
path = pkgs.fetchgit {
url = "https://github.com/getty-zig/getty.git";
path = pkgs.fetchFromGitHub {
owner = "getty-zig";
repo = "getty";
rev = "78738b665a53db4be85696635b9c832fbca8d273";
hash = "sha256-tXxI5ctp7Uz7OK5KmKUHKLPksdI6FJU75XiM+UqtcaI=";
};
@ -35,8 +40,9 @@ pkgs.linkFarm "zig-packages" [
# protest (getty dep)
{
name = "122014736a658ee30f82e5c6e3038c95727690fe01fced2791b213dba10c65fba7c5";
path = pkgs.fetchgit {
url = "https://github.com/ibokuri/protest.git";
path = pkgs.fetchFromGitHub {
owner = "ibokuri";
repo = "protest";
rev = "e7a9bc39c213985814a904b38e4506a6fbd537b2";
hash = "sha256-aW+ivk021gJP3RWHl0X023kpDcwGJVETEw5oooNdG60=";
};

View file

@ -31,8 +31,8 @@ pub fn run(state: *State, con: *nu.Connection, id: u64, call: nu.proto.calls.Run
retvals[i] = .{ .Record = .{ .val = record_map } };
}
try call.respond(con, id, .{ .Value = .{ .List = .{
try call.respond(con, id, .{ .Value = .{ .{ .List = .{
.vals = retvals,
.span = call.call.head,
} } });
} }, null } });
}

View file

@ -123,7 +123,7 @@ fn getDataECallCb(udata: ?*anyopaque, res: nu.proto.EngineCallResponse) !void {
estate.envp = envp_list.items;
},
.PipelineData => |pd| switch (pd) {
.Value => |val| switch (val) {
.Value => |val| switch (val.@"0") {
.String => |s| { // GetCurrentDir
if (estate.cwd != null) return error.ProtocolViolation;
estate.cwd = try estate.arena.allocator().dupe(u8, s.val);