Added desktop item to DOSBox
svn path=/nixpkgs/trunk/; revision=15599
This commit is contained in:
parent
5ee7338cd2
commit
c0605f9d3c
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, SDL}:
|
||||
{stdenv, fetchurl, SDL, makeDesktopItem}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dosbox-0.72";
|
||||
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0ydck7jgvdwnpxakg2y83dmk2dnwx146cgidbmdn7h75y7cxfiqp";
|
||||
};
|
||||
|
||||
buildInputs = [SDL];
|
||||
buildInputs = [SDL];
|
||||
|
||||
# Add missing includes in order to fix compilation with glibc 2.9
|
||||
patchPhase = ''
|
||||
@ -22,6 +22,20 @@ stdenv.mkDerivation rec {
|
||||
cat tmp.cpp src/shell/shell_cmds.cpp > src/shell/shell_cmds.cpp.new
|
||||
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 = {
|
||||
homepage = http://www.dosbox.com/;
|
||||
|
@ -7505,7 +7505,7 @@ let
|
||||
};
|
||||
|
||||
dosbox = import ../misc/emulators/dosbox {
|
||||
inherit fetchurl stdenv SDL;
|
||||
inherit fetchurl stdenv SDL makeDesktopItem;
|
||||
};
|
||||
|
||||
dpkg = import ../tools/package-management/dpkg {
|
||||
|
Loading…
Reference in New Issue
Block a user