evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ff / fflogs / package.nix
blobb4c94e54e3031b0e73707d71ff96e1ee73e434fe
1 { lib
2 , appimageTools
3 , fetchurl
4 }:
6 let
7   pname = "fflogs";
8   version = "8.14.21";
9   src = fetchurl {
10     url = "https://github.com/RPGLogs/Uploaders-fflogs/releases/download/v${version}/fflogs-v${version}.AppImage";
11     hash = "sha256-sBC2qvtSje2uXzSZAYXBFmycKxf0B6/JZhOvWNyMp20=";
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   };