mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
archon-lite: add desktop entry
Co-authored-by: sophiebsw <sophiebsw@gmail.com>
Co-authored-by: Henri Peurasaari <fargate+github@posteo.eu>
(cherry picked from commit 47eed53c87)
This commit is contained in:
parent
d3474199ff
commit
c2dba05087
1 changed files with 14 additions and 0 deletions
|
|
@ -11,10 +11,24 @@ let
|
|||
url = "https://github.com/RPGLogs/Uploaders-archon-lite/releases/download/v${version}/archon-lite-v${version}.AppImage";
|
||||
hash = "sha256-ooNvgbtV6HKgzRLgHZul92NLnEB8oX6fHL6iwfHajVA=";
|
||||
};
|
||||
|
||||
extracted = appimageTools.extractType2 { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraInstallCommands = ''
|
||||
mkdir -p $out/share/applications
|
||||
mkdir -p $out/share/icons/hicolor/512x512/apps
|
||||
cp -r ${extracted}/usr/share/icons/hicolor/512x512/apps/'Archon App Lite.png' $out/share/icons/hicolor/512x512/apps/archon-lite.png
|
||||
chmod -R +w $out/share/
|
||||
test ! -e $out/share/icons/hicolor/0x0 # check for regression of https://github.com/electron-userland/electron-builder/issues/5294
|
||||
cp ${extracted}/'Archon App Lite.desktop' $out/share/applications/archon-lite.desktop
|
||||
substituteInPlace $out/share/applications/archon-lite.desktop \
|
||||
--replace-fail "Exec=AppRun --no-sandbox" "Exec=archon-lite" \
|
||||
--replace-fail "Icon=Archon App Lite" "Icon=archon-lite"
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue