fix compiling when target libc is given

This commit is contained in:
Rokas Puzonas 2024-08-07 22:05:15 +03:00
parent 7d91521083
commit d97b26a586
3 changed files with 5 additions and 6 deletions

6
flake.lock generated
View File

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1722221733, "lastModified": 1722869614,
"narHash": "sha256-sga9SrrPb+pQJxG1ttJfMPheZvDOxApFfwXCFO0H9xw=", "narHash": "sha256-7ojM1KSk3mzutD7SkrdSflHXEujPvW1u7QuqWoTLXQU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "12bf09802d77264e441f48e25459c10c93eada2e", "rev": "883180e6550c1723395a3a342f830bfc5c371f6b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -7,7 +7,7 @@
outputs = { self, nixpkgs }: outputs = { self, nixpkgs }:
let let
version = builtins.substring 0 8 self.lastModifiedDate; version = self.lastModifiedDate;
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;
in in
{ {

View File

@ -66,7 +66,7 @@ pub fn parseDateTime(datetime: []const u8) ?f64 {
const datetime_z = allocator.dupeZ(u8, datetime) catch return null; const datetime_z = allocator.dupeZ(u8, datetime) catch return null;
var tm: time_h.tm = .{}; var tm: time_h.tm = .{};
const s = time_h.strptime(datetime_z, "%FT%H:%M:%S.", &tm); const s = time_h.strptime(datetime_z, "%Y-%m-%dT%H:%M:%S.", &tm);
if (s == null) { if (s == null) {
return null; return null;
} }
@ -342,7 +342,6 @@ fn fetch(self: *ArtifactsAPI, method: std.http.Method, path: []const u8, payload
const response_body = response_storage.items; const response_body = response_storage.items;
if (result.status != .ok) { if (result.status != .ok) {
std.log.debug("Request {} {s} failed with code {}: {s}", .{method, path, result.status, response_body});
return ArtifactsFetchResult{ return ArtifactsFetchResult{
.arena = arena, .arena = arena,
.status = result.status .status = result.status