33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, glib
|
|
, cairo
|
|
, pango
|
|
, gdk-pixbuf
|
|
, atk
|
|
, gtk4
|
|
, wrapGAppsHook4
|
|
, gobject-introspection
|
|
, xvfb-run
|
|
, testers
|
|
, czkawka
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "czkawka";
|
|
version = "5.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qarmin";
|
|
repo = "czkawka";
|
|
rev = version;
|
|
sha256 = "sha256-+Z4R6eRYNU0/wmrrTCLabY1zgxGbdSkgrfJd8rI5fZo=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-hkqGOl6ew3GBMPem8bPRy0PYphHhXJVv6iQiH6lK0kE=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
cairo
|
|
pango
|
|
gdk-pixbuf
|
|
atk
|
|
gtk4
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
xvfb-run
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
xvfb-run cargo test
|
|
runHook postCheck
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = czkawka;
|
|
command = "czkawka_cli --version";
|
|
};
|
|
|
|
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 ];
|
|
maintainers = with maintainers; [ yanganto _0x4A6F ];
|
|
};
|
|
}
|