2009-09-11 13:16:00 +00:00
|
|
|
{ stdenv, fetchurl, lib, perl, gettext, libpng, giflib, libjpeg, alsaLib, readline, mesa
|
2009-05-28 19:22:00 +00:00
|
|
|
, pkgconfig, gtk, SDL, autoconf, automake, makeDesktopItem
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-11-18 13:59:25 +00:00
|
|
|
name = "vice-2.2";
|
2009-05-28 19:22:00 +00:00
|
|
|
src = fetchurl {
|
2010-11-18 13:59:25 +00:00
|
|
|
url = http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.2.tar.gz;
|
|
|
|
sha256 = "0l8mp9ybx494fdqgr1ps4x3c3qzms4yyg4hzcn3ihzy92zw1nn2x";
|
2009-05-28 19:22:00 +00:00
|
|
|
};
|
|
|
|
buildInputs = [ perl gettext libpng giflib libjpeg alsaLib readline mesa
|
|
|
|
pkgconfig gtk SDL autoconf automake ];
|
|
|
|
configureFlags = "--with-sdl --enable-fullscreen --enable-gnomeui";
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "vice";
|
|
|
|
exec = "x64";
|
|
|
|
comment = "Commodore 64 emulator";
|
|
|
|
desktopName = "VICE";
|
|
|
|
genericName = "Commodore 64 emulator";
|
|
|
|
categories = "Application;Emulator;";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
# Disable font-cache update
|
|
|
|
|
|
|
|
sed -i -e "s|install: install-data-am|install-no: install-data-am|" data/fonts/Makefile.am
|
|
|
|
autoreconf -f -i
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/applications
|
2009-05-28 19:22:00 +00:00
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Commodore 64, 128 and other emulators";
|
|
|
|
homepage = http://www.viceteam.org;
|
2011-07-22 19:25:31 +00:00
|
|
|
license = "GPLv2+";
|
2009-09-11 13:16:00 +00:00
|
|
|
maintainers = [ lib.maintainers.sander ];
|
2009-05-28 19:22:00 +00:00
|
|
|
};
|
|
|
|
}
|