uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
102
pkgs/os-specific/linux/plymouth/default.nix
Normal file
102
pkgs/os-specific/linux/plymouth/default.nix
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchpatch
|
||||
, fetchFromGitLab
|
||||
, pkg-config
|
||||
, autoreconfHook
|
||||
, libxslt
|
||||
, docbook-xsl-nons
|
||||
, gettext
|
||||
, gtk3
|
||||
, systemd
|
||||
, pango
|
||||
, cairo
|
||||
, libdrm
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "plymouth";
|
||||
version = "unstable-2021-10-18";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "plymouth";
|
||||
repo = "plymouth";
|
||||
rev = "18363cd887dbfe7e82a2f4cc1a49ef9513919142";
|
||||
sha256 = "sha256-+AP4ALOFdYFt/8MDXjMaHptkogCwK1iXKuza1zfMaws=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
docbook-xsl-nons
|
||||
gettext
|
||||
libxslt
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cairo
|
||||
gtk3
|
||||
libdrm
|
||||
pango
|
||||
systemd
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i \
|
||||
-e "s#plymouthplugindir=.*#plymouthplugindir=/etc/plymouth/plugins/#" \
|
||||
-e "s#plymouththemedir=.*#plymouththemedir=/etc/plymouth/themes#" \
|
||||
-e "s#plymouthpolicydir=.*#plymouthpolicydir=/etc/plymouth/#" \
|
||||
-e "s#plymouthconfdir=.*#plymouthconfdir=/etc/plymouth/#" \
|
||||
configure.ac
|
||||
'';
|
||||
|
||||
configurePlatforms = [ "host" ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-documentation"
|
||||
"--enable-drm"
|
||||
"--enable-gtk"
|
||||
"--enable-pango"
|
||||
"--enable-systemd-integration"
|
||||
"--enable-tracing"
|
||||
"--localstatedir=/var"
|
||||
"--sysconfdir=/etc"
|
||||
"--with-background-color=0x000000"
|
||||
"--with-background-end-color-stop=0x000000"
|
||||
"--with-background-start-color-stop=0x000000"
|
||||
"--with-logo=/etc/plymouth/logo.png"
|
||||
"--with-release-file=/etc/os-release"
|
||||
"--with-runtimedir=/run"
|
||||
"--with-systemdunitdir=${placeholder "out"}/etc/systemd/system"
|
||||
"--without-rhgb-compat-link"
|
||||
"--without-system-root-install"
|
||||
"ac_cv_path_SYSTEMD_ASK_PASSWORD_AGENT=${lib.getBin systemd}/bin/systemd-tty-ask-password-agent"
|
||||
];
|
||||
|
||||
installFlags = [
|
||||
"localstatedir=\${TMPDIR}"
|
||||
"plymouthd_confdir=${placeholder "out"}/etc/plymouth"
|
||||
"plymouthd_defaultsdir=${placeholder "out"}/share/plymouth"
|
||||
"sysconfdir=${placeholder "out"}/etc"
|
||||
];
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.freedesktop.org/wiki/Software/Plymouth/";
|
||||
description = "Boot splash and boot logger";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = [ maintainers.goibhniu ] ++ teams.gnome.members;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue