2009-10-24 16:39:54 +01:00
|
|
|
{stdenv, fetchurl, perl, zlib, libjpeg, freetype,
|
2009-11-05 21:10:03 +00:00
|
|
|
SDL, libX11, xproto, xextproto, libXext, libpng,
|
|
|
|
renderproto, libXrender, giflib}:
|
|
|
|
let s = import ./src-for-default.nix; in
|
2006-11-14 22:23:33 +00:00
|
|
|
stdenv.mkDerivation {
|
2009-11-05 21:10:03 +00:00
|
|
|
inherit (s) name;
|
2006-11-14 22:23:33 +00:00
|
|
|
src = fetchurl {
|
2009-11-05 21:10:03 +00:00
|
|
|
url = s.url;
|
|
|
|
sha256 = s.hash;
|
2006-11-14 22:23:33 +00:00
|
|
|
};
|
2009-10-24 16:39:54 +01:00
|
|
|
buildInputs = [perl zlib libjpeg freetype SDL
|
2009-11-05 21:10:03 +00:00
|
|
|
xproto libX11 libXext xextproto libpng
|
|
|
|
renderproto libXrender giflib
|
|
|
|
];
|
|
|
|
NIX_LDFLAGS="-lgcc_s";
|
2009-10-24 16:39:54 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-sdl"
|
|
|
|
"--enable-zlib"
|
|
|
|
"--with-gfxdrivers=all"
|
2009-11-05 21:10:03 +00:00
|
|
|
"--enable-devmem"
|
|
|
|
"--enable-fbdev"
|
|
|
|
"--enable-x11"
|
|
|
|
"--enable-mmx"
|
|
|
|
"--enable-sse"
|
|
|
|
"--enable-sysfs"
|
|
|
|
"--with-software"
|
|
|
|
"--with-smooth-scaling"
|
2009-10-24 16:39:54 +01:00
|
|
|
];
|
2006-11-14 22:23:33 +00:00
|
|
|
}
|