diff --git a/flake.nix b/flake.nix index 2c2e5c3..8b8ff01 100644 --- a/flake.nix +++ b/flake.nix @@ -25,9 +25,11 @@ nativeBuildInputs = with pkgs; [ pkg-config ]; buildInputs = with pkgs; [ + git glfw libGL libGLU + openssh pkg-config xlibsWrapper xorg.libXcursor diff --git a/main.go b/main.go index d729099..e1ea834 100644 --- a/main.go +++ b/main.go @@ -79,7 +79,7 @@ func (c *commit) getInfo(repo string) error { return err } dateStr := trim(d) - date, err := time.Parse("2006-01-01 15:04:05 -0700", dateStr) + date, err := time.Parse("2006-01-02 15:04:05 -0700", dateStr) if err != nil { return err } @@ -135,6 +135,9 @@ func (x *xinStatus) updateRepoInfo() error { } commit, err := x.getCommit(trim(currentRev)) + if err != nil { + return err + } x.repoCommit = *commit return nil