33 lines
1009 B
Nix
33 lines
1009 B
Nix
|
|
{ pkgs }:
|
||
|
|
let
|
||
|
|
pname = "archon";
|
||
|
|
version = "9.3.119";
|
||
|
|
|
||
|
|
src = pkgs.fetchurl {
|
||
|
|
url = "https://github.com/RPGLogs/Uploaders-archon/releases/download/v${version}/${pname}-v${version}.AppImage";
|
||
|
|
hash = "sha256-mUsmaIxm3DZ1vvcwxpmDTWTj+UlFSv+jYkBrteL8xQk=";
|
||
|
|
};
|
||
|
|
|
||
|
|
appimageContents = pkgs.appimageTools.extract {
|
||
|
|
inherit pname version src;
|
||
|
|
};
|
||
|
|
in
|
||
|
|
pkgs.appimageTools.wrapType2 {
|
||
|
|
inherit pname version src;
|
||
|
|
|
||
|
|
nativeBuildInputs = with pkgs; [ makeWrapper ];
|
||
|
|
extraInstallCommands = ''
|
||
|
|
install -Dm444 "${appimageContents}/Archon App.desktop" "$out/share/applications/archon.desktop"
|
||
|
|
install -Dm444 "${appimageContents}/Archon App.png" "$out/share/icons/hicolor/256x256/apps/archon.png"
|
||
|
|
'';
|
||
|
|
|
||
|
|
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";
|
||
|
|
};
|
||
|
|
}
|