aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/misc/emulators/vice
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/misc/emulators/vice
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/misc/emulators/vice')
-rw-r--r--nixpkgs/pkgs/misc/emulators/vice/default.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/misc/emulators/vice/default.nix b/nixpkgs/pkgs/misc/emulators/vice/default.nix
new file mode 100644
index 00000000000..7cf4faf55cd
--- /dev/null
+++ b/nixpkgs/pkgs/misc/emulators/vice/default.nix
@@ -0,0 +1,53 @@
+{ stdenv, fetchurl, bison, flex, perl, libpng, giflib, libjpeg, alsaLib, readline, libGLU_combined, libXaw
+, pkgconfig, gtk2, SDL, autoreconfHook, makeDesktopItem
+}:
+
+stdenv.mkDerivation rec {
+ name = "vice-3.1";
+
+ src = fetchurl {
+ url = mirror://sourceforge/vice-emu/vice-3.1.tar.gz;
+ sha256 = "0h0jbml02s2a36hr78dxv1zshmfhxp1wadpcdl09aq416fb1bf1y";
+ };
+
+ buildInputs = [ bison flex perl libpng giflib libjpeg alsaLib readline libGLU_combined
+ pkgconfig gtk2 SDL autoreconfHook libXaw ];
+ dontDisableStatic = true;
+ configureFlags = [ "--enable-fullscreen --enable-gnomeui" ];
+
+ desktopItem = makeDesktopItem {
+ name = "vice";
+ exec = "x64";
+ comment = "Commodore 64 emulator";
+ desktopName = "VICE";
+ genericName = "Commodore 64 emulator";
+ categories = "Application;Emulator;";
+ };
+
+ 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
+ '';
+
+ #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;
+ };
+}