1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/misc/emulators/vice/default.nix

54 lines
1.5 KiB
Nix
Raw Normal View History

2019-11-10 16:44:34 +00:00
{ stdenv, fetchurl, bison, flex, perl, libpng, giflib, libjpeg, alsaLib, readline, libGLU, libGL, libXaw
, pkgconfig, gtk2, SDL, autoreconfHook, makeDesktopItem
}:
stdenv.mkDerivation rec {
2017-09-10 14:37:26 +01:00
name = "vice-3.1";
src = fetchurl {
url = "mirror://sourceforge/vice-emu/vice-3.1.tar.gz";
2017-09-10 14:37:26 +01:00
sha256 = "0h0jbml02s2a36hr78dxv1zshmfhxp1wadpcdl09aq416fb1bf1y";
};
2019-11-10 16:44:34 +00:00
buildInputs = [ bison flex perl libpng giflib libjpeg alsaLib readline libGLU libGL
2017-09-10 14:37:26 +01:00
pkgconfig gtk2 SDL autoreconfHook libXaw ];
dontDisableStatic = true;
2018-07-25 22:44:21 +01:00
configureFlags = [ "--enable-fullscreen --enable-gnomeui" ];
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
'';
patchPhase = ''
# Disable font-cache update
sed -i -e "s|install: install-data-am|install-no: install-data-am|" data/fonts/Makefile.am
'';
2017-09-10 14:37:26 +01:00
#NIX_LDFLAGS = "-lX11 -L${libX11}/lib";
postInstall = ''
mkdir -p $out/share/applications
cp ${desktopItem}/share/applications/* $out/share/applications
'';
meta = {
description = "Commodore 64, 128 and other emulators";
homepage = "http://www.viceteam.org";
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.sander ];
platforms = stdenv.lib.platforms.linux;
};
}