2017-09-10 14:37:26 +01:00
|
|
|
{ stdenv, fetchurl, bison, flex, perl, libpng, giflib, libjpeg, alsaLib, readline, mesa, libX11, libXaw
|
2016-09-11 22:24:51 +01:00
|
|
|
, pkgconfig, gtk2, SDL, autoreconfHook, makeDesktopItem
|
2009-05-28 20:22:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-10 14:37:26 +01:00
|
|
|
name = "vice-3.1";
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2009-05-28 20:22:00 +01:00
|
|
|
src = fetchurl {
|
2017-09-10 14:37:26 +01:00
|
|
|
url = mirror://sourceforge/vice-emu/vice-3.1.tar.gz;
|
|
|
|
sha256 = "0h0jbml02s2a36hr78dxv1zshmfhxp1wadpcdl09aq416fb1bf1y";
|
2009-05-28 20:22:00 +01:00
|
|
|
};
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2017-09-10 14:37:26 +01:00
|
|
|
buildInputs = [ bison flex perl libpng giflib libjpeg alsaLib readline mesa
|
|
|
|
pkgconfig gtk2 SDL autoreconfHook libXaw ];
|
|
|
|
dontDisableStatic = true;
|
|
|
|
configureFlags = "--enable-fullscreen --enable-gnomeui";
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2009-05-28 20:22:00 +01:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "vice";
|
|
|
|
exec = "x64";
|
|
|
|
comment = "Commodore 64 emulator";
|
|
|
|
desktopName = "VICE";
|
|
|
|
genericName = "Commodore 64 emulator";
|
|
|
|
categories = "Application;Emulator;";
|
|
|
|
};
|
|
|
|
|
2017-09-10 14:37:26 +01:00
|
|
|
preBuild = ''
|
|
|
|
for i in src/resid src/resid-dtv
|
|
|
|
do
|
|
|
|
mkdir -pv $i/src
|
|
|
|
ln -sv ../../wrap-u-ar.sh $i/src
|
|
|
|
done
|
|
|
|
'';
|
2009-05-28 20:22:00 +01:00
|
|
|
patchPhase = ''
|
|
|
|
# Disable font-cache update
|
|
|
|
sed -i -e "s|install: install-data-am|install-no: install-data-am|" data/fonts/Makefile.am
|
|
|
|
'';
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2017-09-10 14:37:26 +01:00
|
|
|
#NIX_LDFLAGS = "-lX11 -L${libX11}/lib";
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2009-05-28 20:22:00 +01:00
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/applications
|
2009-05-28 20:22:00 +01:00
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
'';
|
2016-01-17 23:04:40 +00:00
|
|
|
|
2009-05-28 20:22:00 +01:00
|
|
|
meta = {
|
|
|
|
description = "Commodore 64, 128 and other emulators";
|
|
|
|
homepage = http://www.viceteam.org;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-09-04 21:34:08 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-05-28 20:22:00 +01:00
|
|
|
};
|
|
|
|
}
|