2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, pango
|
|
|
|
, gdk-pixbuf
|
|
|
|
, atk
|
2022-08-12 12:06:08 +00:00
|
|
|
, gtk4
|
2022-10-21 18:38:19 +00:00
|
|
|
, wrapGAppsHook4
|
2022-08-12 12:06:08 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, xvfb-run
|
2022-04-27 09:35:20 +00:00
|
|
|
, testers
|
2021-12-06 16:07:01 +00:00
|
|
|
, czkawka
|
2021-03-19 17:17:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "czkawka";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "6.0.0";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qarmin";
|
2021-12-06 16:07:01 +00:00
|
|
|
repo = "czkawka";
|
2021-03-19 17:17:44 +00:00
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-aMQq44vflpsI66CyaXekMfYh/ssH7UkCX0zsO55st3Y=";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoHash = "sha256-1D87O4fje82Oxyj2Q9kAEey4uEzsNT7kTd8IbNT4WXE=";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2022-10-21 18:38:19 +00:00
|
|
|
wrapGAppsHook4
|
2022-08-12 12:06:08 +00:00
|
|
|
gobject-introspection
|
2021-03-19 17:17:44 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
cairo
|
|
|
|
pango
|
|
|
|
gdk-pixbuf
|
|
|
|
atk
|
2022-08-12 12:06:08 +00:00
|
|
|
gtk4
|
2021-03-19 17:17:44 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
xvfb-run
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
xvfb-run cargo test
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2021-12-06 16:07:01 +00:00
|
|
|
package = czkawka;
|
|
|
|
command = "czkawka_cli --version";
|
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
meta = with lib; {
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/qarmin/czkawka/raw/${version}/Changelog.md";
|
2021-03-19 17:17:44 +00:00
|
|
|
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-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ yanganto _0x4A6F ];
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
}
|