diff options
Diffstat (limited to 'pkgs/yaak.nix')
| -rw-r--r-- | pkgs/yaak.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/yaak.nix b/pkgs/yaak.nix new file mode 100644 index 0000000..5331462 --- /dev/null +++ b/pkgs/yaak.nix @@ -0,0 +1,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"; + }; +} |