chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ff / fflogs / package.nix
blob2a398506b3d8ba34650f83b0db507c0f2ad99ed4
1 { lib
2 , appimageTools
3 , fetchurl
4 }:
6 let
7   pname = "fflogs";
8   version = "8.14.0";
9   src = fetchurl {
10     url = "https://github.com/RPGLogs/Uploaders-fflogs/releases/download/v${version}/fflogs-v${version}.AppImage";
11     hash = "sha256-hHgPtr25X2vZY+MKQn9FgkMLrF5vgklMQHzx4ksGrDk=";
12   };
13   extracted = appimageTools.extractType2 { inherit pname version src; };
15 appimageTools.wrapType2 {
16   inherit pname version src;
18   extraInstallCommands = ''
19     mkdir -p $out/share/applications
20     cp -r ${extracted}/usr/share/icons $out/share/
21     chmod -R +w $out/share/
22     mv $out/share/icons/hicolor/0x0 $out/share/icons/hicolor/512x512 # https://github.com/electron-userland/electron-builder/issues/5294
23     cp ${extracted}/fflogs.desktop $out/share/applications/
24     sed -i 's@^Exec=AppRun --no-sandbox@Exec=fflogs@g' $out/share/applications/fflogs.desktop
25   '';
27   meta = with lib; {
28     description = "Application for uploading Final Fantasy XIV combat logs to fflogs.com";
29     homepage = "https://www.fflogs.com/client/download";
30     downloadPage = "https://github.com/RPGLogs/Uploaders-fflogs/releases/latest";
31     license = licenses.unfree; # no license listed
32     mainProgram = "fflogs";
33     platforms = platforms.linux;
34     maintainers = with maintainers; [ sersorrel ];
35     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
36   };