mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
vice: 2.2 -> 3.1 + fix build procedure
This commit is contained in:
parent
7641d0e335
commit
6e1eedd64e
@ -1,18 +1,19 @@
|
||||
{ stdenv, fetchurl, perl, libpng, giflib, libjpeg, alsaLib, readline, mesa, libX11
|
||||
{ stdenv, fetchurl, bison, flex, perl, libpng, giflib, libjpeg, alsaLib, readline, mesa, libX11, libXaw
|
||||
, pkgconfig, gtk2, SDL, autoreconfHook, makeDesktopItem
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "vice-2.2";
|
||||
name = "vice-3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.2.tar.gz;
|
||||
sha256 = "0l8mp9ybx494fdqgr1ps4x3c3qzms4yyg4hzcn3ihzy92zw1nn2x";
|
||||
url = mirror://sourceforge/vice-emu/vice-3.1.tar.gz;
|
||||
sha256 = "0h0jbml02s2a36hr78dxv1zshmfhxp1wadpcdl09aq416fb1bf1y";
|
||||
};
|
||||
|
||||
buildInputs = [ perl libpng giflib libjpeg alsaLib readline mesa
|
||||
pkgconfig gtk2 SDL autoreconfHook ];
|
||||
configureFlags = "--with-sdl --enable-fullscreen --enable-gnomeui";
|
||||
buildInputs = [ bison flex perl libpng giflib libjpeg alsaLib readline mesa
|
||||
pkgconfig gtk2 SDL autoreconfHook libXaw ];
|
||||
dontDisableStatic = true;
|
||||
configureFlags = "--enable-fullscreen --enable-gnomeui";
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "vice";
|
||||
@ -23,12 +24,19 @@ stdenv.mkDerivation rec {
|
||||
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";
|
||||
#NIX_LDFLAGS = "-lX11 -L${libX11}/lib";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/applications
|
||||
|
Loading…
Reference in New Issue
Block a user