lol
1{ stdenv, fetchurl, perl, libpng, giflib, libjpeg, alsaLib, readline, mesa, libX11
2, pkgconfig, gtk, SDL, autoreconfHook, makeDesktopItem
3}:
4
5stdenv.mkDerivation rec {
6 name = "vice-2.2";
7
8 src = fetchurl {
9 url = http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.2.tar.gz;
10 sha256 = "0l8mp9ybx494fdqgr1ps4x3c3qzms4yyg4hzcn3ihzy92zw1nn2x";
11 };
12
13 buildInputs = [ perl libpng giflib libjpeg alsaLib readline mesa
14 pkgconfig gtk SDL autoreconfHook ];
15 configureFlags = "--with-sdl --enable-fullscreen --enable-gnomeui";
16
17 desktopItem = makeDesktopItem {
18 name = "vice";
19 exec = "x64";
20 comment = "Commodore 64 emulator";
21 desktopName = "VICE";
22 genericName = "Commodore 64 emulator";
23 categories = "Application;Emulator;";
24 };
25
26 patchPhase = ''
27 # Disable font-cache update
28 sed -i -e "s|install: install-data-am|install-no: install-data-am|" data/fonts/Makefile.am
29 '';
30
31 NIX_LDFLAGS = "-lX11 -L${libX11}/lib";
32
33 postInstall = ''
34 mkdir -p $out/share/applications
35 cp ${desktopItem}/share/applications/* $out/share/applications
36 '';
37
38 meta = {
39 description = "Commodore 64, 128 and other emulators";
40 homepage = http://www.viceteam.org;
41 license = stdenv.lib.licenses.gpl2Plus;
42 maintainers = [ stdenv.lib.maintainers.sander ];
43 platforms = stdenv.lib.platforms.linux;
44 };
45}