mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
Merge pull request #248403 from sersorrel/ff-logs-uploader
fflogs: init at 8.3.42
This commit is contained in:
commit
659e1fca6f
37
pkgs/by-name/ff/fflogs/package.nix
Normal file
37
pkgs/by-name/ff/fflogs/package.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ lib
|
||||
, appimageTools
|
||||
, fetchurl
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "fflogs";
|
||||
version = "8.3.42";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/RPGLogs/Uploaders-fflogs/releases/download/v${version}/fflogs-v${version}.AppImage";
|
||||
hash = "sha256-Bc4C1cOOHdWkw2mHn3Q/2fcKuyCFDvOq1jLee2WPsyI=";
|
||||
};
|
||||
extracted = appimageTools.extractType2 { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraInstallCommands = ''
|
||||
mkdir -p $out/share/applications
|
||||
cp -r ${extracted}/usr/share/icons $out/share/
|
||||
chmod -R +w $out/share/
|
||||
mv $out/share/icons/hicolor/0x0 $out/share/icons/hicolor/512x512 # https://github.com/electron-userland/electron-builder/issues/5294
|
||||
cp ${extracted}/fflogs.desktop $out/share/applications/
|
||||
sed -i 's@^Exec=AppRun --no-sandbox@Exec=fflogs@g' $out/share/applications/fflogs.desktop
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An application for uploading Final Fantasy XIV combat logs to fflogs.com";
|
||||
homepage = "https://www.fflogs.com/client/download";
|
||||
downloadPage = "https://github.com/RPGLogs/Uploaders-fflogs/releases/latest";
|
||||
license = licenses.unfree; # no license listed
|
||||
mainProgram = "fflogs";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ sersorrel ];
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user