nixpkgs/pkgs/os-specific/linux/splashutils/1.5.nix
Eelco Dolstra 0283118633 * splashutils 1.5.4.1, needed for kernels that have the new
fbcondecor patch.  splashutils 1.3 is retained for kernels
  with the fbsplash patch.

svn path=/nixpkgs/trunk/; revision=12029
2008-06-10 16:09:53 +00:00

33 lines
863 B
Nix

{stdenv, fetchurl, klibc, zlib, libjpeg}:
stdenv.mkDerivation {
name = "splashutils-1.5.4.1";
src = fetchurl {
url = http://download.berlios.de/fbsplash/splashutils-1.5.4.1.tar.bz2;
sha256 = "0pwv9l6a042hhcwpi4kqdzjg7d1mrlix0fvgqqzqh93mc54z9lf7";
};
buildInputs = [klibc zlib libjpeg];
dontAddPrefix = 1;
configureFlags = "--without-ttf --without-png --without-gpm --with-themedir=/etc/splash";
preConfigure = ''
configureFlags="$configureFlags --with-essential-prefix=$out --with-libdir=/"
substituteInPlace src/common.h \
--replace 'FBSPLASH_DIR"/sys"' '"/sys"' \
--replace 'FBSPLASH_DIR"/proc"' '"/proc"'
'';
CPP = "gcc -E";
CXXCPP = "g++ -E";
passthru = {
helperName = "sbin/fbcondecor_helper";
controlName = "sbin/fbcondecor_ctl";
helperProcFile = "/proc/sys/kernel/fbcondecor";
};
}