{ pkgs ? import { }, lib, ... }: let yaak-version = "2024.6.6"; yaak-archive = pkgs.fetchzip { url = "https://releases.yaak.app/releases/${yaak-version}/yaak_${yaak-version}_amd64.AppImage.tar.gz"; hash = "sha256-Qnc4RlQmQWHARreQ69jAshq57bZ56Yt5a35jpTjGwNU="; }; in # https://discourse.nixos.org/t/creating-a-nix-derivation-for-an-appimage/31927 pkgs.appimageTools.wrapType2 rec { pname = "yaak"; version = yaak-version; src = "${yaak-archive}/yaak_${yaak-version}_amd64.AppImage"; meta = with lib; { description = "Play with APIs, intuitively"; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; homepage = "https://yaak.app/"; license = licenses.unfree; platforms = platforms.linux; mainProgram = "yaak"; }; }