Skip to content

Commit c1247e1

Browse files
yaak: init at 2025.1.2 (#384648)
2 parents 631b0f7 + 26aa3f8 commit c1247e1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

pkgs/by-name/ya/yaak/package.nix

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
appimageTools,
3+
fetchurl,
4+
lib,
5+
}:
6+
appimageTools.wrapType2 rec {
7+
pname = "yaak";
8+
version = "2025.1.2";
9+
10+
src = fetchurl {
11+
url = "https://github.com/mountain-loop/yaak/releases/download/v${version}/${pname}_${version}_amd64.AppImage";
12+
hash = "sha256-daUB2BW0y+6TYL6V591Yx/9JtgLdyuKEhCPjfG5L4WQ=";
13+
};
14+
15+
contents = appimageTools.extract {
16+
inherit pname version src;
17+
postExtract = ''
18+
substituteInPlace $out/yaak.desktop --replace-fail 'yaak-app' 'yaak'
19+
'';
20+
};
21+
22+
extraInstallCommands = ''
23+
install -Dm444 ${contents}/yaak.desktop $out/share/applications/yaak.desktop
24+
for size in "32x32" "128x128" "256x256@2"; do
25+
install -Dm444 ${contents}/usr/share/icons/hicolor/$size/apps/yaak-app.png $out/share/icons/hicolor/$size/apps/yaak.png
26+
done
27+
'';
28+
29+
meta = {
30+
description = "Desktop API client for organizing and executing REST, GraphQL, and gRPC requests";
31+
homepage = "https://yaak.app/";
32+
license = lib.licenses.mit;
33+
maintainers = with lib.maintainers; [ redyf ];
34+
mainProgram = "yaak";
35+
platforms = [ "x86_64-linux" ];
36+
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
37+
};
38+
}

0 commit comments

Comments
 (0)