2021-03-15 16:53:55 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, pango
|
|
|
|
, gdk-pixbuf
|
|
|
|
, atk
|
|
|
|
, gtk3
|
2022-04-20 15:40:48 +01:00
|
|
|
, testers
|
2021-11-21 02:12:40 +00:00
|
|
|
, czkawka
|
2021-03-15 16:53:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "czkawka";
|
2022-04-25 22:18:43 +01:00
|
|
|
version = "4.1.0";
|
2021-03-15 16:53:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qarmin";
|
2021-11-21 02:12:40 +00:00
|
|
|
repo = "czkawka";
|
2021-03-15 16:53:55 +00:00
|
|
|
rev = version;
|
2022-04-25 22:18:43 +01:00
|
|
|
sha256 = "sha256-N7fCYcjhYlFVkvWdFpR5cu98Vy+jStlBkR/vz/k1lLY=";
|
2021-03-15 16:53:55 +00:00
|
|
|
};
|
|
|
|
|
2022-04-25 22:18:43 +01:00
|
|
|
cargoSha256 = "sha256-4L7OjJ26Qpl5YuHil7JEYU8xWH65jiyFz0a/ufr7wYQ=";
|
2021-03-15 16:53:55 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
cairo
|
|
|
|
pango
|
|
|
|
gdk-pixbuf
|
|
|
|
atk
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
2022-04-20 15:40:48 +01:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2021-11-21 02:12:40 +00:00
|
|
|
package = czkawka;
|
|
|
|
command = "czkawka_cli --version";
|
|
|
|
};
|
|
|
|
|
2021-03-15 16:53:55 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple, fast and easy to use app to remove unnecessary files from your computer";
|
|
|
|
homepage = "https://github.com/qarmin/czkawka";
|
|
|
|
license = with licenses; [ mit ];
|
2021-11-21 02:12:40 +00:00
|
|
|
maintainers = with maintainers; [ yanganto _0x4A6F ];
|
2021-03-15 16:53:55 +00:00
|
|
|
};
|
|
|
|
}
|