aboutsummaryrefslogtreecommitdiff
path: root/pkgs/yaak.nix
blob: e901d584dc350a76c28b8c00f0e278e9ccaa973f (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
29
30
31
32
33
34
35
36
37
38
39
40
{
  pkgs,
  lib,
  yae,
}:
let
  inherit (yae.yaak) version;
in
pkgs.appimageTools.wrapType2 {
  inherit version;

  pname = "yaak";

  src =
    let
      unzipped-archive =
        let
          archive = pkgs.fetchurl {
            inherit (yae.yaak) url sha256;
          };
        in
        pkgs.runCommand "unzipped" { } ''
          mkdir -p $out
          tar -xvf ${archive} -C $out
        '';
    in
    "${unzipped-archive}/yaak_${version}_amd64.AppImage";

  buildInputs = [ pkgs.bzip2 ];

  meta = with lib; {
    description = "The API client for modern developers";
    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
    homepage = "https://yaak.app/";
    license = licenses.unfree;
    platforms = platforms.linux;
    mainProgram = "yaak";
    maintainers = [ maintainers.Fuwn ];
  };
}