Skip to content

Commit 4f0a3e7

Browse files
committed
ruffle: add postInstall phase for desktop files on Linux
1 parent a5b431c commit 4f0a3e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/by-name/ru/ruffle/package.nix

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ rustPlatform.buildRustPackage {
6666

6767
dontWrapGApps = true;
6868

69+
postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
70+
install -Dm644 -t "$out/share/icons/hicolor/scalable/apps/" desktop/packages/linux/rs.ruffle.Ruffle.svg
71+
install -Dm644 -t "$out/share/applications/" desktop/packages/linux/rs.ruffle.Ruffle.desktop
72+
install -Dm644 -t "$out/share/metainfo/" desktop/packages/linux/rs.ruffle.Ruffle.metainfo.xml
73+
'';
74+
6975
preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
7076
patchelf $out/bin/ruffle_desktop \
7177
--add-needed libxkbcommon-x11.so \

0 commit comments

Comments
 (0)