2021-02-21 21:03:54 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchpatch
|
|
|
|
, fetchFromGitLab
|
|
|
|
, pkg-config
|
|
|
|
, autoreconfHook
|
|
|
|
, libxslt
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, gettext
|
|
|
|
, gtk3
|
|
|
|
, systemd
|
|
|
|
, pango
|
|
|
|
, cairo
|
|
|
|
, libdrm
|
2014-05-26 18:29:53 +01:00
|
|
|
}:
|
2013-04-12 00:58:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-02-21 21:03:54 +00:00
|
|
|
pname = "plymouth-unstable";
|
|
|
|
version = "2020-12-07";
|
2013-04-12 00:58:38 +01:00
|
|
|
|
2021-02-21 21:03:54 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "plymouth";
|
|
|
|
repo = "plymouth";
|
|
|
|
rev = "c4ced2a2d70edea7fbb95274aa1d01d95928df1b";
|
|
|
|
sha256 = "7CPuKMA0fTt8DBsaA4Td74kHT/O7PW8N3awP04nUnOI=";
|
2013-04-12 00:58:38 +01:00
|
|
|
};
|
|
|
|
|
2016-07-06 20:53:25 +01:00
|
|
|
nativeBuildInputs = [
|
2021-02-21 21:03:54 +00:00
|
|
|
autoreconfHook
|
|
|
|
docbook-xsl-nons
|
|
|
|
gettext
|
|
|
|
libxslt
|
|
|
|
pkg-config
|
2014-05-26 18:29:53 +01:00
|
|
|
];
|
|
|
|
|
2016-07-06 20:53:25 +01:00
|
|
|
buildInputs = [
|
2021-02-21 21:03:54 +00:00
|
|
|
cairo
|
|
|
|
gtk3
|
|
|
|
libdrm
|
|
|
|
pango
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# KillMode=none is deprecated
|
|
|
|
# https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/123
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.freedesktop.org/plymouth/plymouth/-/commit/b406b0895a95949db2adfedaeda451f36f2b51c3.patch";
|
|
|
|
sha256 = "/UBImNuFO0G/oxlttjGIXon8YXMXlc9XU8uVuR9QuxY=";
|
|
|
|
})
|
2016-07-06 20:53:25 +01:00
|
|
|
];
|
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#plymouthplugindir=.*#plymouthplugindir=/etc/plymouth/plugins/#" \
|
|
|
|
-e "s#plymouththemedir=.*#plymouththemedir=/etc/plymouth/themes#" \
|
|
|
|
-e "s#plymouthpolicydir=.*#plymouthpolicydir=/etc/plymouth/#" \
|
2021-02-21 21:03:54 +00:00
|
|
|
-e "s#plymouthconfdir=.*#plymouthconfdir=/etc/plymouth/#" \
|
2016-07-06 20:53:25 +01:00
|
|
|
configure.ac
|
2020-02-27 02:57:49 +00:00
|
|
|
'';
|
2016-07-06 20:53:25 +01:00
|
|
|
|
2021-02-21 21:03:54 +00:00
|
|
|
configurePlatforms = [ "host" ];
|
|
|
|
|
2020-02-27 02:57:49 +00:00
|
|
|
configureFlags = [
|
2021-02-21 21:03:54 +00:00
|
|
|
"--enable-documentation"
|
|
|
|
"--enable-drm"
|
|
|
|
"--enable-gtk"
|
|
|
|
"--enable-pango"
|
|
|
|
"--enable-systemd-integration"
|
|
|
|
"--enable-tracing"
|
2020-02-27 02:57:49 +00:00
|
|
|
"--localstatedir=/var"
|
2021-02-21 21:03:54 +00:00
|
|
|
"--sysconfdir=/etc"
|
2020-02-27 02:57:49 +00:00
|
|
|
"--with-background-color=0x000000"
|
|
|
|
"--with-background-end-color-stop=0x000000"
|
2021-02-21 21:03:54 +00:00
|
|
|
"--with-background-start-color-stop=0x000000"
|
|
|
|
"--with-logo=/etc/plymouth/logo.png"
|
2020-02-27 02:57:49 +00:00
|
|
|
"--with-release-file=/etc/os-release"
|
2021-02-21 21:03:54 +00:00
|
|
|
"--with-runtimedir=/run"
|
|
|
|
"--with-systemdunitdir=${placeholder "out"}/etc/systemd/system"
|
2020-02-27 02:57:49 +00:00
|
|
|
"--without-rhgb-compat-link"
|
2021-02-21 21:03:54 +00:00
|
|
|
"--without-system-root-install"
|
2020-03-04 04:03:53 +00:00
|
|
|
"ac_cv_path_SYSTEMD_ASK_PASSWORD_AGENT=${lib.getBin systemd}/bin/systemd-tty-ask-password-agent"
|
2020-02-27 02:57:49 +00:00
|
|
|
];
|
2016-07-06 20:53:25 +01:00
|
|
|
|
2020-02-27 02:57:49 +00:00
|
|
|
installFlags = [
|
2021-02-21 21:03:54 +00:00
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
"plymouthd_confdir=${placeholder "out"}/etc/plymouth"
|
|
|
|
"plymouthd_defaultsdir=${placeholder "out"}/share/plymouth"
|
|
|
|
"sysconfdir=${placeholder "out"}/etc"
|
2020-02-27 02:57:49 +00:00
|
|
|
];
|
2013-04-12 00:58:38 +01:00
|
|
|
|
2021-02-21 21:03:54 +00:00
|
|
|
postInstall = ''
|
|
|
|
# Makes a symlink to /usr/share/pixmaps/system-logo-white.png
|
|
|
|
# We'll handle it in the nixos module.
|
|
|
|
rm $out/share/plymouth/themes/spinfinity/header-image.png
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-02-21 21:03:54 +00:00
|
|
|
homepage = "https://www.freedesktop.org/wiki/Software/Plymouth/";
|
|
|
|
description = "Boot splash and boot logger";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.goibhniu teams.gnome.members ];
|
2014-03-16 11:08:26 +00:00
|
|
|
platforms = platforms.linux;
|
2013-04-12 00:58:38 +01:00
|
|
|
};
|
|
|
|
}
|