From 7ab6ab2870d61c6b90c68f3436c883381a74d4ef Mon Sep 17 00:00:00 2001 From: 0x4A6F <0x4A6F@users.noreply.github.com> Date: Tue, 2 Aug 2022 21:46:19 +0200 Subject: [PATCH] czkawka: 4.1.0 -> 5.0.1 --- pkgs/tools/misc/czkawka/default.nix | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/czkawka/default.nix b/pkgs/tools/misc/czkawka/default.nix index 1bbcaf1f34bc..06127a62df02 100644 --- a/pkgs/tools/misc/czkawka/default.nix +++ b/pkgs/tools/misc/czkawka/default.nix @@ -7,26 +7,31 @@ , pango , gdk-pixbuf , atk -, gtk3 +, gtk4 +, wrapGAppsHook +, gobject-introspection +, xvfb-run , testers , czkawka }: rustPlatform.buildRustPackage rec { pname = "czkawka"; - version = "4.1.0"; + version = "5.0.1"; src = fetchFromGitHub { owner = "qarmin"; repo = "czkawka"; rev = version; - sha256 = "sha256-N7fCYcjhYlFVkvWdFpR5cu98Vy+jStlBkR/vz/k1lLY="; + sha256 = "sha256-ochHohwCOKCF9kiiMxMIaJXaHUWNbq7pIh+VNRKQlcg="; }; - cargoSha256 = "sha256-4L7OjJ26Qpl5YuHil7JEYU8xWH65jiyFz0a/ufr7wYQ="; + cargoSha256 = "sha256-ap8OpaLs1jZtEHbXVZyaGj3gvblWtyHmYrHiHvZKhfs="; nativeBuildInputs = [ pkg-config + wrapGAppsHook + gobject-introspection ]; buildInputs = [ @@ -35,9 +40,19 @@ rustPlatform.buildRustPackage rec { pango gdk-pixbuf atk - gtk3 + gtk4 ]; + checkInputs = [ + xvfb-run + ]; + + checkPhase = '' + runHook preCheck + xvfb-run cargo test + runHook postCheck + ''; + passthru.tests.version = testers.testVersion { package = czkawka; command = "czkawka_cli --version";