mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +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
|
, pkgconfig, gtk2, SDL, autoreconfHook, makeDesktopItem
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "vice-2.2";
|
name = "vice-3.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.2.tar.gz;
|
url = mirror://sourceforge/vice-emu/vice-3.1.tar.gz;
|
||||||
sha256 = "0l8mp9ybx494fdqgr1ps4x3c3qzms4yyg4hzcn3ihzy92zw1nn2x";
|
sha256 = "0h0jbml02s2a36hr78dxv1zshmfhxp1wadpcdl09aq416fb1bf1y";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ perl libpng giflib libjpeg alsaLib readline mesa
|
buildInputs = [ bison flex perl libpng giflib libjpeg alsaLib readline mesa
|
||||||
pkgconfig gtk2 SDL autoreconfHook ];
|
pkgconfig gtk2 SDL autoreconfHook libXaw ];
|
||||||
configureFlags = "--with-sdl --enable-fullscreen --enable-gnomeui";
|
dontDisableStatic = true;
|
||||||
|
configureFlags = "--enable-fullscreen --enable-gnomeui";
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = "vice";
|
name = "vice";
|
||||||
@ -23,12 +24,19 @@ stdenv.mkDerivation rec {
|
|||||||
categories = "Application;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 = ''
|
patchPhase = ''
|
||||||
# Disable font-cache update
|
# Disable font-cache update
|
||||||
sed -i -e "s|install: install-data-am|install-no: install-data-am|" data/fonts/Makefile.am
|
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 = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/applications
|
mkdir -p $out/share/applications
|
||||||
|
Loading…
Reference in New Issue
Block a user