Merge pull request #278783 from atorres1985-contrib/czkawka

Czkawka: rewrite

authored by Thiago Kenji Okada and committed by GitHub 3602153c 08883ba0

+27 -30
+27 -26
pkgs/tools/misc/czkawka/default.nix pkgs/by-name/cz/czkawka/package.nix
··· 1 1 { lib 2 2 , stdenv 3 - , rustPlatform 3 + , atk 4 + , cairo 5 + , czkawka 6 + , darwin 4 7 , fetchFromGitHub 5 - , pkg-config 8 + , gdk-pixbuf 6 9 , glib 7 - , cairo 10 + , gobject-introspection 11 + , gtk4 8 12 , pango 9 - , gdk-pixbuf 10 - , atk 11 - , gtk4 12 - , Foundation 13 + , pkg-config 14 + , rustPlatform 15 + , testers 13 16 , wrapGAppsHook4 14 - , gobject-introspection 15 17 , xvfb-run 16 - , testers 17 - , czkawka 18 18 }: 19 19 20 - rustPlatform.buildRustPackage rec { 20 + let 21 21 pname = "czkawka"; 22 22 version = "6.1.0"; 23 23 ··· 27 27 rev = version; 28 28 hash = "sha256-uKmiBNwuu3Eduf0v3p2VYYNf6mgxJTBUsYs+tKZQZys="; 29 29 }; 30 - 31 30 cargoHash = "sha256-iBO99kpITVl7ySlXPkEg2YecS1lonVx9CbKt9WI180s="; 31 + in 32 + rustPlatform.buildRustPackage { 33 + inherit pname version src cargoHash; 32 34 33 35 nativeBuildInputs = [ 36 + gobject-introspection 34 37 pkg-config 35 38 wrapGAppsHook4 36 - gobject-introspection 37 39 ]; 38 40 39 41 buildInputs = [ 40 - glib 42 + atk 41 43 cairo 42 - pango 43 44 gdk-pixbuf 44 - atk 45 + glib 45 46 gtk4 47 + pango 46 48 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 47 - Foundation 49 + darwin.apple_sdk.frameworks.Foundation 48 50 ]; 49 51 50 52 nativeCheckInputs = [ 51 53 xvfb-run 52 54 ]; 55 + 56 + strictDeps = true; 53 57 54 58 checkPhase = '' 55 59 runHook preCheck ··· 65 69 command = "czkawka_cli --version"; 66 70 }; 67 71 72 + # Desktop items, icons and metainfo are not installed automatically 68 73 postInstall = '' 69 - # Install Icons 74 + install -Dm444 -t $out/share/applications data/com.github.qarmin.czkawka.desktop 70 75 install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka.svg 71 76 install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka-symbolic.svg 72 - 73 - # Install MetaInfo 74 77 install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml 75 - 76 - # Install Desktop Entry 77 - install -Dm444 -t $out/share/applications data/com.github.qarmin.czkawka.desktop 78 78 ''; 79 79 80 - meta = with lib; { 80 + meta = { 81 81 changelog = "https://github.com/qarmin/czkawka/raw/${version}/Changelog.md"; 82 82 description = "A simple, fast and easy to use app to remove unnecessary files from your computer"; 83 83 homepage = "https://github.com/qarmin/czkawka"; 84 - license = with licenses; [ mit ]; 85 - maintainers = with maintainers; [ yanganto _0x4A6F ]; 84 + license = with lib.licenses; [ mit ]; 85 + mainProgram = "czkawka_gui"; 86 + maintainers = with lib.maintainers; [ AndersonTorres yanganto _0x4A6F ]; 86 87 }; 87 88 }
-4
pkgs/top-level/all-packages.nix
··· 4780 4780 4781 4781 fw-ectool = callPackage ../os-specific/linux/fw-ectool { }; 4782 4782 4783 - czkawka = callPackage ../tools/misc/czkawka { 4784 - inherit (darwin.apple_sdk.frameworks) Foundation; 4785 - }; 4786 - 4787 4783 chayang = callPackage ../tools/wayland/chayang { }; 4788 4784 4789 4785 cherrytree = callPackage ../applications/misc/cherrytree { };