From 38f289db33089a8ad43fff714b7d858bed23f7a5 Mon Sep 17 00:00:00 2001 From: happysalada Date: Wed, 12 May 2021 16:46:49 +0900 Subject: [PATCH] broot: 1.3.1 -> 1.4.0 --- pkgs/tools/misc/broot/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/misc/broot/default.nix b/pkgs/tools/misc/broot/default.nix index 0fa7841074a..0aeef02f32d 100644 --- a/pkgs/tools/misc/broot/default.nix +++ b/pkgs/tools/misc/broot/default.nix @@ -4,33 +4,39 @@ , fetchCrate , installShellFiles , makeWrapper +, pkg-config +, libgit2 +, oniguruma , libiconv -, zlib , Security +, zlib }: rustPlatform.buildRustPackage rec { pname = "broot"; - version = "1.3.1"; + version = "1.4.0"; src = fetchCrate { inherit pname version; - sha256 = "sha256-Iz9pXvgPIGUnfbnvk5kYAqlrMlz3I2kLszPe8GwwHVk="; + sha256 = "sha256-6UveXa0rMWt5FbmhB0CsYRMGMXxL8FB/XivB4Ec93PY="; }; - cargoHash = "sha256-eECAaTUgqasuDhLSk8p/CWSQmV8yV30UoMy3GZCRbGE="; + cargoHash = "sha256-c6U1ZOaXZ7RnKD7q0WTkam9gL8SL/naSeHGbB5I82lk="; nativeBuildInputs = [ - makeWrapper installShellFiles + makeWrapper + pkg-config ]; - buildInputs = lib.optionals stdenv.isDarwin [ + buildInputs = [ libgit2 oniguruma ] ++ lib.optionals stdenv.isDarwin [ libiconv Security zlib ]; + RUSTONIG_SYSTEM_LIBONIG = true; + postPatch = '' # Fill the version stub in the man page. We can't fill the date # stub reproducibly.