2026-07-12 15:52:52 -04:00
|
|
|
{ pkgs }:
|
|
|
|
|
let
|
|
|
|
|
pname = "archon";
|
2026-08-09 13:01:27 -04:00
|
|
|
version = "9.5.8";
|
2026-07-12 15:52:52 -04:00
|
|
|
|
|
|
|
|
src = pkgs.fetchurl {
|
|
|
|
|
url = "https://github.com/RPGLogs/Uploaders-archon/releases/download/v${version}/${pname}-v${version}.AppImage";
|
2026-08-09 13:01:27 -04:00
|
|
|
hash = "sha256-tEMfDK0BCBvNWFlA78FKWcOvU1wzIorBM4ZmLQ+6hzU=";
|
2026-07-12 15:52:52 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
appimageContents = pkgs.appimageTools.extract {
|
|
|
|
|
inherit pname version src;
|
|
|
|
|
};
|
|
|
|
|
in
|
|
|
|
|
pkgs.appimageTools.wrapType2 {
|
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = with pkgs; [ makeWrapper ];
|
|
|
|
|
extraInstallCommands = ''
|
2026-08-09 13:01:27 -04:00
|
|
|
install -Dm444 "${appimageContents}/archon.desktop" "$out/share/applications/archon.desktop"
|
|
|
|
|
install -Dm444 "${appimageContents}/archon.png" "$out/share/icons/hicolor/512x512/apps/archon.png"
|
|
|
|
|
|
|
|
|
|
substituteInPlace "$out/share/applications/archon.desktop" \
|
|
|
|
|
--replace-fail "Exec=AppRun --no-sandbox %U" "Exec=archon --no-sandbox %U"
|
2026-07-12 15:52:52 -04:00
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with pkgs.lib; {
|
|
|
|
|
description = "RPGLogs Archon uploader";
|
|
|
|
|
homepage = "https://github.com/RPGLogs/Uploaders-archon";
|
|
|
|
|
license = licenses.unfree;
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
|
mainProgram = "archon";
|
|
|
|
|
};
|
|
|
|
|
}
|