2016-01-18 00:04:40 +01:00
|
|
|
{ stdenv, fetchurl, perl, libpng, giflib, libjpeg, alsaLib, readline, mesa, libX11
|
|
|
|
, pkgconfig, gtk, SDL, autoreconfHook, makeDesktopItem
|
2009-05-28 21:22:00 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-11-18 14:59:25 +01:00
|
|
|
name = "vice-2.2";
|
2016-01-18 00:04:40 +01:00
|
|
|
|
2009-05-28 21:22:00 +02:00
|
|
|
src = fetchurl {
|
2010-11-18 14:59:25 +01:00
|
|
|
url = http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.2.tar.gz;
|
|
|
|
sha256 = "0l8mp9ybx494fdqgr1ps4x3c3qzms4yyg4hzcn3ihzy92zw1nn2x";
|
2009-05-28 21:22:00 +02:00
|
|
|
};
|
2016-01-18 00:04:40 +01:00
|
|
|
|
|
|
|
buildInputs = [ perl libpng giflib libjpeg alsaLib readline mesa
|
|
|
|
pkgconfig gtk SDL autoreconfHook ];
|
2009-05-28 21:22:00 +02:00
|
|
|
configureFlags = "--with-sdl --enable-fullscreen --enable-gnomeui";
|
2016-01-18 00:04:40 +01:00
|
|
|
|
2009-05-28 21:22:00 +02:00
|
|
|
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
|
|
|
|
'';
|
2016-01-18 00:04:40 +01:00
|
|
|
|
2013-09-04 22:34:08 +02:00
|
|
|
NIX_LDFLAGS = "-lX11 -L${libX11}/lib";
|
2016-01-18 00:04:40 +01:00
|
|
|
|
2009-05-28 21:22:00 +02:00
|
|
|
postInstall = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/applications
|
2009-05-28 21:22:00 +02:00
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
'';
|
2016-01-18 00:04:40 +01:00
|
|
|
|
2009-05-28 21:22:00 +02:00
|
|
|
meta = {
|
|
|
|
description = "Commodore 64, 128 and other emulators";
|
|
|
|
homepage = http://www.viceteam.org;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-09-04 22:34:08 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
2009-05-28 21:22:00 +02:00
|
|
|
};
|
|
|
|
}
|