2016-07-06 20:53:25 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, libxslt, docbook_xsl
|
|
|
|
, gtk3, udev, systemd
|
2014-05-26 18:29:53 +01:00
|
|
|
}:
|
2013-04-12 00:58:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "plymouth";
|
2018-11-06 04:37:13 +00:00
|
|
|
version = "0.9.4";
|
2013-04-12 00:58:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://www.freedesktop.org/software/plymouth/releases/${pname}-${version}.tar.xz";
|
2018-11-06 04:37:13 +00:00
|
|
|
sha256 = "0l8kg7b2vfxgz9gnrn0v2w4jvysj2cirp0nxads5sy05397pl6aa";
|
2013-04-12 00:58:38 +01:00
|
|
|
};
|
|
|
|
|
2016-07-06 20:53:25 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook pkgconfig libxslt docbook_xsl
|
2014-05-26 18:29:53 +01:00
|
|
|
];
|
|
|
|
|
2016-07-06 20:53:25 +01:00
|
|
|
buildInputs = [
|
|
|
|
gtk3 udev systemd
|
|
|
|
];
|
2013-04-12 00:58:38 +01:00
|
|
|
|
2015-03-04 21:02:09 +00:00
|
|
|
postPatch = ''
|
2016-07-06 20:53:25 +01:00
|
|
|
sed -i \
|
|
|
|
-e "s#\$(\$PKG_CONFIG --variable=systemdsystemunitdir systemd)#$out/etc/systemd/system#g" \
|
|
|
|
-e "s#plymouthplugindir=.*#plymouthplugindir=/etc/plymouth/plugins/#" \
|
|
|
|
-e "s#plymouththemedir=.*#plymouththemedir=/etc/plymouth/themes#" \
|
|
|
|
-e "s#plymouthpolicydir=.*#plymouthpolicydir=/etc/plymouth/#" \
|
|
|
|
configure.ac
|
|
|
|
|
2015-03-04 21:02:09 +00:00
|
|
|
configureFlags="
|
|
|
|
--prefix=$out
|
|
|
|
--bindir=$out/bin
|
|
|
|
--sbindir=$out/sbin
|
|
|
|
--exec-prefix=$out
|
|
|
|
--libdir=$out/lib
|
|
|
|
--libexecdir=$out/lib
|
2016-07-06 20:53:25 +01:00
|
|
|
--sysconfdir=/etc
|
2017-08-10 21:21:24 +01:00
|
|
|
--with-systemdunitdir=$out/etc/systemd/system
|
2015-03-04 21:02:09 +00:00
|
|
|
--localstatedir=/var
|
2016-07-06 20:53:25 +01:00
|
|
|
--with-logo=/etc/plymouth/logo.png
|
|
|
|
--with-background-color=0x000000
|
|
|
|
--with-background-start-color-stop=0x000000
|
|
|
|
--with-background-end-color-stop=0x000000
|
|
|
|
--with-release-file=/etc/os-release
|
2015-03-04 21:02:09 +00:00
|
|
|
--without-system-root-install
|
|
|
|
--without-rhgb-compat-link
|
|
|
|
--enable-tracing
|
|
|
|
--enable-systemd-integration
|
|
|
|
--enable-pango
|
2016-07-06 20:53:25 +01:00
|
|
|
--enable-gdm-transition
|
2015-03-04 21:02:09 +00:00
|
|
|
--enable-gtk"
|
2016-07-06 20:53:25 +01:00
|
|
|
|
|
|
|
installFlags="
|
|
|
|
plymouthd_defaultsdir=$out/share/plymouth
|
|
|
|
plymouthd_confdir=$out/etc/plymouth"
|
2013-04-12 00:58:38 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.freedesktop.org/wiki/Software/Plymouth;
|
|
|
|
description = "A graphical boot animation";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2014-03-16 11:08:26 +00:00
|
|
|
platforms = platforms.linux;
|
2013-04-12 00:58:38 +01:00
|
|
|
};
|
|
|
|
}
|