mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
amiberry: create desktop file (#344719)
This commit is contained in:
commit
5a9892ff54
@ -3,6 +3,7 @@
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
copyDesktopItems,
|
||||
makeWrapper,
|
||||
flac,
|
||||
libmpeg2,
|
||||
@ -13,6 +14,7 @@
|
||||
SDL2,
|
||||
SDL2_image,
|
||||
SDL2_ttf,
|
||||
makeDesktopItem,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@ -28,6 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
copyDesktopItems
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
@ -61,6 +64,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
mkdir -p $out/bin
|
||||
cp amiberry $out/bin/
|
||||
cp -r abr data $out/
|
||||
install -Dm444 data/amiberry.png $out/share/icons/hicolor/256x256/apps/amiberry.png
|
||||
wrapProgram $out/bin/amiberry \
|
||||
--set-default AMIBERRY_DATA_DIR $out \
|
||||
--run 'AMIBERRY_HOME_DIR="$HOME/.amiberry"' \
|
||||
@ -80,6 +84,20 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "amiberry";
|
||||
desktopName = "Amiberry";
|
||||
exec = "amiberry";
|
||||
comment = "Amiga emulator";
|
||||
icon = "amiberry";
|
||||
categories = [
|
||||
"System"
|
||||
"Emulator"
|
||||
];
|
||||
})
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/BlitterStudio/amiberry";
|
||||
description = "Optimized Amiga emulator for Linux/macOS";
|
||||
|
Loading…
Reference in New Issue
Block a user