nixpkgs/pkgs/development/libraries/directfb/default.nix
Vladimír Čunát 9463175461 directfb: fix after update (of someone else)
(semi-)automatic updates are nice, but it needs at least to check
that the package still compiles
2013-02-02 10:48:54 +01:00

39 lines
904 B
Nix

{ stdenv, fetchurl, pkgconfig, perl, zlib, libjpeg, freetype, libpng, giflib
, enableX11 ? true, xlibs
, enableSDL ? true, SDL }:
let s = import ./src-for-default.nix; in
stdenv.mkDerivation {
inherit (s) name;
src = fetchurl {
url = s.url;
sha256 = s.hash;
};
buildNativeInputs = [ perl ];
buildInputs = [ pkgconfig zlib libjpeg freetype giflib libpng ]
++ stdenv.lib.optional enableSDL SDL
++ stdenv.lib.optionals enableX11 (with xlibs; [
xproto libX11 libXext #xextproto
#renderproto libXrender
]);
NIX_LDFLAGS="-lgcc_s";
configureFlags = [
"--enable-sdl"
"--enable-zlib"
"--with-gfxdrivers=all"
"--enable-devmem"
"--enable-fbdev"
"--enable-mmx"
"--enable-sse"
#"--enable-sysfs" # not recognized
"--with-software"
"--with-smooth-scaling"
] ++ stdenv.lib.optionals enableX11 [
"--enable-x11"
];
}