2021-03-15 16:53:55 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, pango
|
|
|
|
, gdk-pixbuf
|
|
|
|
, atk
|
|
|
|
, gtk3
|
2021-11-21 02:12:40 +00:00
|
|
|
, testVersion
|
|
|
|
, czkawka
|
2021-03-15 16:53:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "czkawka";
|
2021-11-21 02:12:40 +00:00
|
|
|
version = "3.3.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;
|
2021-11-21 02:12:40 +00:00
|
|
|
sha256 = "0mikgnsqxj8dgapr2k7i9i8mmsza15kp4nasyd6l1vp2cqy8aki6";
|
2021-03-15 16:53:55 +00:00
|
|
|
};
|
|
|
|
|
2021-11-21 02:12:40 +00:00
|
|
|
cargoSha256 = "009zfy4lk8y51h1wi71mrjp6kc7xnk3r8jlbxvhyqslhqd9w10fv";
|
2021-03-15 16:53:55 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
cairo
|
|
|
|
pango
|
|
|
|
gdk-pixbuf
|
|
|
|
atk
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
2021-11-21 02:12:40 +00:00
|
|
|
passthru.tests.version = testVersion {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|