2013-04-15 20:15:47 +02:00
|
|
|
{ stdenv, fetchurl, cairo, gtk, libdrm, libpng, makeWrapper, pango, pkgconfig }:
|
2013-04-12 01:58:38 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "plymouth-${version}";
|
|
|
|
version = "0.8.8";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.freedesktop.org/software/plymouth/releases/${name}.tar.bz2";
|
|
|
|
sha256 = "16vm3llgci7h63jaclfskj1ii61d8psq7ny2mncml6m3sghs9b8v";
|
|
|
|
};
|
|
|
|
|
2013-04-15 20:15:47 +02:00
|
|
|
buildInputs = [ cairo gtk libdrm libpng makeWrapper pango pkgconfig ];
|
2013-04-12 01:58:38 +02:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
export DESTDIR=$out
|
2013-04-15 20:15:47 +02:00
|
|
|
./configure \
|
|
|
|
-bindir=$out/bin \
|
|
|
|
-sbindir=$out/sbin \
|
2013-04-12 01:58:38 +02:00
|
|
|
--prefix=$out \
|
|
|
|
--exec-prefix=$out \
|
|
|
|
--libdir=$out/lib \
|
|
|
|
--libexecdir=$out/lib \
|
|
|
|
--enable-tracing \
|
|
|
|
--sysconfdir=/etc \
|
2013-04-15 20:15:47 +02:00
|
|
|
--localstatedir=/var \
|
|
|
|
--without-system-root-install \
|
|
|
|
--enable-gtk
|
2013-04-12 01:58:38 +02:00
|
|
|
'';
|
2013-04-15 20:15:47 +02:00
|
|
|
# --enable-systemd-integration
|
|
|
|
# -datadir=/share \
|
|
|
|
# --with-rhgb-compat-link \
|
|
|
|
|
|
|
|
preInstall = "mkdir -p $out/bin $out/sbin";
|
2013-04-12 01:58:38 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
cd $out/$out
|
|
|
|
mv bin/* $out/bin
|
|
|
|
mv sbin/* $out/sbin
|
2013-04-15 20:15:47 +02:00
|
|
|
|
2013-04-12 01:58:38 +02:00
|
|
|
rmdir bin
|
|
|
|
rmdir sbin
|
|
|
|
mv * $out/
|
2013-04-15 20:15:47 +02:00
|
|
|
sed -e "s#> $output##" \
|
|
|
|
-e "s#> /dev/stderr##" \
|
|
|
|
-i $out/lib/plymouth/plymouth-populate-initrd
|
|
|
|
wrapProgram $out/lib/plymouth/plymouth-populate-initrd \
|
|
|
|
--set PATH $PATH:$out/bin:$out/sbin
|
2013-04-12 01:58:38 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.freedesktop.org/wiki/Software/Plymouth;
|
|
|
|
description = "A graphical boot animation";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|