summaryrefslogtreecommitdiff
path: root/pkgs/yaak.nix
blob: 53314628c0cf3838efa87da7044c938f6abf280c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  pkgs ? import <nixpkgs> { },
  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";
  };
}