2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, perl
|
|
|
|
, libpng
|
|
|
|
, giflib
|
|
|
|
, libjpeg
|
|
|
|
, alsa-lib
|
|
|
|
, readline
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, libXaw
|
|
|
|
, pkg-config
|
|
|
|
, gtk2
|
|
|
|
, SDL
|
|
|
|
, SDL_image
|
|
|
|
, autoreconfHook
|
|
|
|
, makeDesktopItem
|
|
|
|
, dos2unix
|
|
|
|
, xa
|
|
|
|
, file
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "vice";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-18 13:19:15 +00:00
|
|
|
url = "mirror://sourceforge/vice-emu/vice-${version}.tar.gz";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-Vrl4+q64solgMr1gTQPDUBACGH7vHKWM7O1A8Rpl3A4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
bison
|
|
|
|
dos2unix
|
|
|
|
file
|
|
|
|
flex
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
giflib
|
|
|
|
gtk2
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libXaw
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
perl
|
|
|
|
readline
|
|
|
|
SDL
|
|
|
|
SDL_image
|
|
|
|
xa
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
dontDisableStatic = true;
|
2021-12-19 01:06:50 +00:00
|
|
|
configureFlags = [ "--enable-fullscreen" "--enable-gnomeui" "--disable-pdf-docs" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "vice";
|
|
|
|
exec = "x64";
|
|
|
|
comment = "Commodore 64 emulator";
|
|
|
|
desktopName = "VICE";
|
|
|
|
genericName = "Commodore 64 emulator";
|
2020-07-18 16:06:22 +00:00
|
|
|
categories = "Emulator;";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
for i in src/resid src/resid-dtv
|
|
|
|
do
|
2021-12-19 01:06:50 +00:00
|
|
|
mkdir -pv $i/src
|
|
|
|
ln -sv ../../wrap-u-ar.sh $i/src
|
2020-04-24 23:36:52 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Commodore 64, 128 and other emulators";
|
2021-12-19 01:06:50 +00:00
|
|
|
homepage = "https://vice-emu.sourceforge.io/";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ lib.maintainers.sander ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|