diff --git a/pkgs/by-name/gi/git-statuses/package.nix b/pkgs/by-name/gi/git-statuses/package.nix index 0c57ed4f0393..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, @@ -13,16 +14,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; @@ -32,8 +33,17 @@ rustPlatform.buildRustPackage (finalAttrs: { pkg-config ]; buildInputs = [ + libgit2 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