nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 1.4 kB view raw
1{ 2 lib, 3 appimageTools, 4 fetchurl, 5}: 6 7let 8 pname = "fflogs"; 9 version = "8.19.39"; 10 src = fetchurl { 11 url = "https://github.com/RPGLogs/Uploaders-fflogs/releases/download/v${version}/fflogs-v${version}.AppImage"; 12 hash = "sha256-Po2UKrum4/OIDpnr4jtsm9RODC4ekjE3kzciKtV7Y8k="; 13 }; 14 extracted = appimageTools.extractType2 { inherit pname version src; }; 15in 16appimageTools.wrapType2 { 17 inherit pname version src; 18 19 extraInstallCommands = '' 20 mkdir -p $out/share/applications 21 cp -r ${extracted}/usr/share/icons $out/share/ 22 chmod -R +w $out/share/ 23 test ! -e $out/share/icons/hicolor/0x0 # check for regression of https://github.com/electron-userland/electron-builder/issues/5294 24 cp ${extracted}/'FF Logs Uploader.desktop' $out/share/applications/fflogs.desktop 25 sed -i 's@^Exec=AppRun --no-sandbox@Exec=fflogs@g' $out/share/applications/fflogs.desktop 26 ''; 27 28 meta = { 29 description = "Application for uploading Final Fantasy XIV combat logs to fflogs.com"; 30 homepage = "https://www.fflogs.com/client/download"; 31 downloadPage = "https://github.com/RPGLogs/Uploaders-fflogs/releases/latest"; 32 license = lib.licenses.unfree; # no license listed 33 mainProgram = "fflogs"; 34 platforms = lib.platforms.linux; 35 maintainers = with lib.maintainers; [ keysmashes ]; 36 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 37 }; 38}