3
0
Fork 0
forked from mirrors/nixpkgs

86Box: include desktop entry

This commit is contained in:
Robin Mattheussen 2023-05-24 00:12:55 +02:00
parent b1a6fd2318
commit 07a435b75b
No known key found for this signature in database
GPG key ID: 8DC3890E89EDE9DF

View file

@ -46,6 +46,15 @@ stdenv.mkDerivation rec {
++ lib.optional (!enableDynarec) "-DDYNAREC=OFF"
++ lib.optional (!unfreeEnableDiscord) "-DDISCORD=OFF";
postInstall = lib.optional stdenv.isLinux ''
install -Dm644 -t $out/share/applications $src/src/unix/assets/net.86box.86Box.desktop
for size in 48 64 72 96 128 192 256 512; do
install -Dm644 -t $out/share/icons/hicolor/"$size"x"$size"/apps \
$src/src/unix/assets/"$size"x"$size"/net.86box.86Box.png
done;
'';
# Some libraries are loaded dynamically, but QLibrary doesn't seem to search
# the runpath, so use a wrapper instead.
postFixup = let