Skip to content

Commit

Permalink
ruffle: add postInstall phase for desktop files
Browse files Browse the repository at this point in the history
  • Loading branch information
normalcea committed Jan 5, 2025
1 parent 1b4c474 commit 7967794
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/by-name/ru/ruffle/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ rustPlatform.buildRustPackage {

dontWrapGApps = true;

postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
install -Dm644 -t "$out/share/icons/hicolor/scalable/apps/" desktop/packages/linux/rs.ruffle.Ruffle.svg
install -Dm644 -t "$out/share/applications/" desktop/packages/linux/rs.ruffle.Ruffle.desktop
install -Dm644 -t "$out/share/metainfo/" desktop/packages/linux/rs.ruffle.Ruffle.metainfo.xml
'';

preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
patchelf $out/bin/ruffle_desktop \
--add-needed libxkbcommon-x11.so \
Expand Down

0 comments on commit 7967794

Please sign in to comment.