From fa85ae612fb1de0d062ff1b2ae4b7fd392c16cc1 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 3 Nov 2026 17:51:25 +0100 Subject: [PATCH 1/2] git-statuses: 0.8.2 -> 1.0.0 Diff: https://github.com/bircni/git-statuses/compare/0.8.2...1.0.0 Changelog: https://github.com/bircni/git-statuses/blob/1.0.0/CHANGELOG.md --- pkgs/by-name/gi/git-statuses/package.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/gi/git-statuses/package.nix b/pkgs/by-name/gi/git-statuses/package.nix index 0c57ed4f0393..a94d7885bed5 100644 --- a/pkgs/by-name/gi/git-statuses/package.nix +++ b/pkgs/by-name/gi/git-statuses/package.nix @@ -13,16 +13,16 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "git-statuses"; - version = "0.8.2"; + version = "1.0.0"; src = fetchFromGitHub { owner = "bircni"; repo = "git-statuses"; tag = finalAttrs.version; - hash = "sha256-hZ0/lC7Xjv+CDi2uucRa009nTCrKIrBFj3BbZsciJ2o="; + hash = "sha256-2TY5/3+NLCews07fQ5nrmubmICmdKhqFFvvI0VvFlRI="; }; - cargoHash = "sha256-RMRATVe6NILxNiNVkcdv5x5BYVL5UUphtrrGRWN18KU="; + cargoHash = "sha256-LWeQYsH6xG9RCCp8BROmrK2jP5XcXnyGZPy7rVnvr94="; # Needed to get openssl-sys to use pkg-config. env.OPENSSL_NO_VENDOR = 1; @@ -34,6 +34,14 @@ rustPlatform.buildRustPackage (finalAttrs: { buildInputs = [ openssl ]; + + # tests print tables and check their content, + # but in the sandbox, stty has "rows 0; columns 0;" + # so a newline is inserted after every char + preCheck = '' + stty -F /dev/stdout cols 100 + ''; + nativeInstallCheckInputs = [ git versionCheckHook From 5fe1513267c2dffcbc1671d73ab7a27d21ba9528 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 9 Nov 2026 13:41:54 +0100 Subject: [PATCH 2/2] git-statuses: add libgit2 fix: https://hydra.nixos.org/build/352583457 ``` > PKG_CONFIG_PATH=/nix/store/i4q9xzcvnk6gn3ga90j3n37616x11q9d-openssl-3.5.9-dev/lib/pkgconfig PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags libgit2 'libgit2 >= 1.9.4' 'libgit2 < 1.10.0' pkg-config output: Package libgit2 was not found in the pkg-config search path. Perhaps you should add the directory containing `libgit2.pc' to the PKG_CONFIG_PATH environment variable No package 'libgit2' found Package libgit2 was not found in the pkg-config search path. Perhaps you should add the directory containing `libgit2.pc' to the PKG_CONFIG_PATH environment variable No package 'libgit2' found Package libgit2 was not found in the pkg-config search path. Perhaps you should add the directory containing `libgit2.pc' to the PKG_CONFIG_PATH environment variable No package 'libgit2' found The system library `libgit2` required by crate `libgit2-sys` was not found. The file `libgit2.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory. PKG_CONFIG_PATH contains the following: - /nix/store/i4q9xzcvnk6gn3ga90j3n37616x11q9d-openssl-3.5.9-dev/lib/pkgconfig HINT: you may need to install a package such as libgit2, libgit2-dev or libgit2-devel. ``` --- pkgs/by-name/gi/git-statuses/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/gi/git-statuses/package.nix b/pkgs/by-name/gi/git-statuses/package.nix index a94d7885bed5..85818977611a 100644 --- a/pkgs/by-name/gi/git-statuses/package.nix +++ b/pkgs/by-name/gi/git-statuses/package.nix @@ -4,6 +4,7 @@ rustPlatform, installShellFiles, pkg-config, + libgit2, openssl, git, versionCheckHook, @@ -32,6 +33,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pkg-config ]; buildInputs = [ + libgit2 openssl ];