From 18f08bf53591f3e68043730a627889957009deb6 Mon Sep 17 00:00:00 2001 From: adikro Date: Sun, 15 Mar 2026 22:13:15 +0100 Subject: browser stuff --- hm/soft/czkawka-v11.nix | 97 ------------------------------------------------- 1 file changed, 97 deletions(-) delete mode 100644 hm/soft/czkawka-v11.nix (limited to 'hm/soft/czkawka-v11.nix') diff --git a/hm/soft/czkawka-v11.nix b/hm/soft/czkawka-v11.nix deleted file mode 100644 index 781da99..0000000 --- a/hm/soft/czkawka-v11.nix +++ /dev/null @@ -1,97 +0,0 @@ -{ - lib, - atk, - cairo, - callPackage, - fetchFromGitHub, - gdk-pixbuf, - glib, - gobject-introspection, - gtk4, - pango, - pkg-config, - rustPlatform, - stdenv, - testers, - wrapGAppsHook4, - xvfb-run, - versionCheckHook, -}: - -let - self = rustPlatform.buildRustPackage { - pname = "czkawka"; - version = "11.0.1"; - - src = fetchFromGitHub { - owner = "qarmin"; - repo = "czkawka"; - tag = self.version; - hash = "sha256-ke6N3vuKPGolfh6XpAg3/9dtwd09eX53fN2klUwwNwQ="; - }; - - cargoHash = "sha256-fx2ZH4I2WYCdMgNoKQuBBEJrPjmgTRPeVM2L+TWYn54="; - - nativeBuildInputs = [ - gobject-introspection - pkg-config - wrapGAppsHook4 - ]; - - buildInputs = [ - atk - cairo - gdk-pixbuf - glib - gtk4 - pango - ]; - - nativeCheckInputs = [ xvfb-run ]; - - strictDeps = true; - - doCheck = stdenv.hostPlatform.isLinux && (stdenv.hostPlatform == stdenv.buildPlatform); - - checkPhase = '' - runHook preCheck - xvfb-run cargo test - runHook postCheck - ''; - - postInstall = '' - install -Dm444 -t $out/share/applications data/com.github.qarmin.czkawka.desktop - install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka.svg - install -Dm444 -t $out/share/icons/hicolor/scalable/apps data/icons/com.github.qarmin.czkawka-symbolic.svg - install -Dm444 -t $out/share/metainfo data/com.github.qarmin.czkawka.metainfo.xml - ''; - - nativeInstallCheckInputs = [ versionCheckHook ]; - versionCheckProgram = "${placeholder "out"}/bin/czkawka_cli"; - doInstallCheck = true; - - passthru = { - tests.version = testers.testVersion { - package = self; - command = "czkawka_cli --version"; - }; - # Ensure you have a wrapper.nix in the same folder if using this - wrapper = callPackage ./wrapper.nix { - czkawka = self; - }; - }; - - meta = { - homepage = "https://github.com/qarmin/czkawka"; - description = "Simple, fast and easy to use app to remove unnecessary files from your computer"; - changelog = "https://github.com/qarmin/czkawka/raw/${self.version}/Changelog.md"; - license = with lib.licenses; [ mit ]; - mainProgram = "czkawka_gui"; - maintainers = with lib.maintainers; [ - yanganto - _0x4A6F - ]; - }; - }; -in -self -- cgit v1.3