summary refs log tree commit diff
path: root/pkgs/misc/emulators/vice
diff options
context:
space:
mode:
authorSander van der Burg <s.vanderburg@tudelft.nl>2009-05-28 19:22:00 +0000
committerSander van der Burg <s.vanderburg@tudelft.nl>2009-05-28 19:22:00 +0000
commit5990b0d95fa27962ad0bfab4dcff281d77d1731d (patch)
treedde117859ead490ef163d58ba6d2d3e3835a0ef9 /pkgs/misc/emulators/vice
parent0c5786e22d576f4890f0f29f1101ce1bb8168edf (diff)
downloadnixlib-5990b0d95fa27962ad0bfab4dcff281d77d1731d.tar
nixlib-5990b0d95fa27962ad0bfab4dcff281d77d1731d.tar.gz
nixlib-5990b0d95fa27962ad0bfab4dcff281d77d1731d.tar.bz2
nixlib-5990b0d95fa27962ad0bfab4dcff281d77d1731d.tar.lz
nixlib-5990b0d95fa27962ad0bfab4dcff281d77d1731d.tar.xz
nixlib-5990b0d95fa27962ad0bfab4dcff281d77d1731d.tar.zst
nixlib-5990b0d95fa27962ad0bfab4dcff281d77d1731d.zip
Added VICE emulator package
svn path=/nixpkgs/trunk/; revision=15776
Diffstat (limited to 'pkgs/misc/emulators/vice')
-rw-r--r--pkgs/misc/emulators/vice/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/vice/default.nix b/pkgs/misc/emulators/vice/default.nix
new file mode 100644
index 000000000000..3dcee7ef5e1f
--- /dev/null
+++ b/pkgs/misc/emulators/vice/default.nix
@@ -0,0 +1,40 @@
+{ stdenv, fetchurl, perl, gettext, libpng, giflib, libjpeg, alsaLib, readline, mesa
+, pkgconfig, gtk, SDL, autoconf, automake, makeDesktopItem
+}:
+
+stdenv.mkDerivation rec {
+  name = "vice-2.1";
+  src = fetchurl {
+    url = http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.1.tar.gz;
+    sha256 = "dc42df924bd4b4ab4af43e372d873a79ea035059f31f2f5c297c234b1c532c66";
+  };
+  buildInputs = [ perl gettext libpng giflib libjpeg alsaLib readline mesa
+                  pkgconfig gtk SDL autoconf automake ];
+  configureFlags = "--with-sdl --enable-fullscreen --enable-gnomeui";
+  
+  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
+    autoreconf -f -i
+  '';
+  
+  postInstall = ''
+    ensureDir $out/share/applications
+    cp ${desktopItem}/share/applications/* $out/share/applications
+  '';
+  
+  meta = {
+    description = "Commodore 64, 128 and other emulators";
+    homepage = http://www.viceteam.org;
+  };
+}