Added desktop item to DOSBox

svn path=/nixpkgs/trunk/; revision=15599
This commit is contained in:
Sander van der Burg 2009-05-14 11:17:41 +00:00
parent 5ee7338cd2
commit c0605f9d3c
2 changed files with 17 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, SDL}: {stdenv, fetchurl, SDL, makeDesktopItem}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "dosbox-0.72"; name = "dosbox-0.72";
@ -23,6 +23,20 @@ stdenv.mkDerivation rec {
mv src/shell/shell_cmds.cpp.new src/shell/shell_cmds.cpp mv src/shell/shell_cmds.cpp.new src/shell/shell_cmds.cpp
''; '';
desktopItem = makeDesktopItem {
name = "dosbox";
exec = "dosbox";
comment = "x86 emulator with internal DOS";
desktopName = "DOSBox";
genericName = "DOS emulator";
categories = "Application;Emulator;";
};
postInstall = ''
ensureDir $out/share/applications
cp ${desktopItem}/share/applications/* $out/share/applications
'';
meta = { meta = {
homepage = http://www.dosbox.com/; homepage = http://www.dosbox.com/;
description = "A DOS emulator"; description = "A DOS emulator";

View File

@ -7505,7 +7505,7 @@ let
}; };
dosbox = import ../misc/emulators/dosbox { dosbox = import ../misc/emulators/dosbox {
inherit fetchurl stdenv SDL; inherit fetchurl stdenv SDL makeDesktopItem;
}; };
dpkg = import ../tools/package-management/dpkg { dpkg = import ../tools/package-management/dpkg {