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