10 gobject-introspection,
24 buildRustPackage' = rustPlatform.buildRustPackage.override {
25 stdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
28 self = buildRustPackage' {
32 src = fetchFromGitHub {
35 rev = "refs/tags/${self.version}";
36 hash = "sha256-Uxko2TRIjqQvd7n9C+P7oMUrm3YY5j7TVzvijEjDwOM=";
39 cargoHash = "sha256-DR2JU+QcGWliNoRMjSjJns7FsicpNAX5gTariFuQ/dw=";
56 ++ lib.optionals stdenv.hostPlatform.isDarwin (
57 with darwin.apple_sdk.frameworks;
64 nativeCheckInputs = [ xvfb-run ];
68 doCheck = stdenv.hostPlatform.isLinux && (stdenv.hostPlatform == stdenv.buildPlatform);
76 # Desktop items, icons and metainfo are not installed automatically
78 install -Dm444 -t $out/share/applications data/com.github.qarmin.czkawka.desktop
79 install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka.svg
80 install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka-symbolic.svg
81 install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml
84 nativeInstallCheckInputs = [
87 versionCheckProgram = "${placeholder "out"}/bin/czkawka_cli";
88 versionCheckProgramArg = [ "--version" ];
89 doInstallCheck = true;
92 tests.version = testers.testVersion {
94 command = "czkawka_cli --version";
96 wrapper = callPackage ./wrapper.nix {
102 homepage = "https://github.com/qarmin/czkawka";
103 description = "Simple, fast and easy to use app to remove unnecessary files from your computer";
104 changelog = "https://github.com/qarmin/czkawka/raw/${self.version}/Changelog.md";
105 license = with lib.licenses; [ mit ];
106 mainProgram = "czkawka_gui";
107 maintainers = with lib.maintainers; [