Skip to content

Commit 6e1eedd

Browse files
committedSep 10, 2017
vice: 2.2 -> 3.1 + fix build procedure
1 parent 7641d0e commit 6e1eedd

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed
 

Diff for: ‎pkgs/misc/emulators/vice/default.nix

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
{ stdenv, fetchurl, perl, libpng, giflib, libjpeg, alsaLib, readline, mesa, libX11
1+
{ stdenv, fetchurl, bison, flex, perl, libpng, giflib, libjpeg, alsaLib, readline, mesa, libX11, libXaw
22
, pkgconfig, gtk2, SDL, autoreconfHook, makeDesktopItem
33
}:
44

55
stdenv.mkDerivation rec {
6-
name = "vice-2.2";
6+
name = "vice-3.1";
77

88
src = fetchurl {
9-
url = http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.2.tar.gz;
10-
sha256 = "0l8mp9ybx494fdqgr1ps4x3c3qzms4yyg4hzcn3ihzy92zw1nn2x";
9+
url = mirror://sourceforge/vice-emu/vice-3.1.tar.gz;
10+
sha256 = "0h0jbml02s2a36hr78dxv1zshmfhxp1wadpcdl09aq416fb1bf1y";
1111
};
1212

13-
buildInputs = [ perl libpng giflib libjpeg alsaLib readline mesa
14-
pkgconfig gtk2 SDL autoreconfHook ];
15-
configureFlags = "--with-sdl --enable-fullscreen --enable-gnomeui";
13+
buildInputs = [ bison flex perl libpng giflib libjpeg alsaLib readline mesa
14+
pkgconfig gtk2 SDL autoreconfHook libXaw ];
15+
dontDisableStatic = true;
16+
configureFlags = "--enable-fullscreen --enable-gnomeui";
1617

1718
desktopItem = makeDesktopItem {
1819
name = "vice";
@@ -23,12 +24,19 @@ stdenv.mkDerivation rec {
2324
categories = "Application;Emulator;";
2425
};
2526

27+
preBuild = ''
28+
for i in src/resid src/resid-dtv
29+
do
30+
mkdir -pv $i/src
31+
ln -sv ../../wrap-u-ar.sh $i/src
32+
done
33+
'';
2634
patchPhase = ''
2735
# Disable font-cache update
2836
sed -i -e "s|install: install-data-am|install-no: install-data-am|" data/fonts/Makefile.am
2937
'';
3038

31-
NIX_LDFLAGS = "-lX11 -L${libX11}/lib";
39+
#NIX_LDFLAGS = "-lX11 -L${libX11}/lib";
3240

3341
postInstall = ''
3442
mkdir -p $out/share/applications

0 commit comments

Comments
 (0)
Please sign in to comment.