File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments