21 python3Packages.buildPythonApplication rec {
24 pyproject = false; # Built with meson
26 src = fetchFromGitHub {
30 hash = "sha256-f4rQXenJCZiDC9MRQkjy0mOiNkWzOPSS05GXHXlhUao=";
34 # https://github.com/NixOS/nixpkgs/issues/302605
35 # But since the author only builds on flatpak, we don't expect much on it...
37 substituteInPlace build-aux/meson/postinstall.py \
38 --replace-fail 'gtk-update-icon-cache' 'gtk4-update-icon-cache'
40 # Some attempts to overcome flatpak assumptions
42 substituteInPlace src/lib/utils.py \
43 --replace-fail '/run/host/os-release' '/etc/os-release'
45 substituteInPlace src/lib/terminal.py \
46 --replace-fail "cmd = ['flatpak-spawn', '--host', *command]" "cmd = [*command]"
48 # Use gtk4 instead of gtk3 to get smaller closure size
50 substituteInPlace src/providers/AppImageProvider.py \
51 --replace-fail "gtk-launch" "gtk4-launch"
53 # We don't have `arch` in coreutils, so just return a string in advance
55 substituteInPlace src/AppDetails.py \
56 --replace-fail "sandbox_sh(['arch'])" '"${stdenv.hostPlatform.uname.processor}"'
68 buildInputs = [ libadwaita ];
70 dependencies = with python3Packages; [
80 "\${gappsWrapperArgs[@]}"
87 desktop-file-utils # update-desktop-database
88 gtk4.dev # gtk4-launch
95 description = "Manage AppImages with ease";
99 - Integrate AppImages into your app menu with just one click
100 - Drag and drop files directly from your file manager
101 - Keep all the AppImages organized in a custom folder
102 - Open new AppImages directly with Gear lever
103 - Manage updates: keep older versions installed or replace
104 them with the latest release
105 - Save CLI apps with their executable name automatically
106 - Modern and Fresh UI
108 homepage = "https://mijorus.it/projects/gearlever";
109 license = with lib.licenses; [
113 mainProgram = "gearlever";
114 maintainers = with lib.maintainers; [ aleksana ];
115 platforms = lib.platforms.linux;