czkawka: 4.1.0 -> 5.0.1

This commit is contained in:
0x4A6F 2022-08-02 21:46:19 +02:00 committed by Matthias Thym
parent cda43cbf79
commit 7ab6ab2870

View file

@ -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";