Apply customization for EU edition
This commit is contained in:
16
packages/eu-flag-installer-plymouth/default.nix
Normal file
16
packages/eu-flag-installer-plymouth/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{stdenv}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "eu-flag-installer-plymouth";
|
||||
version = "0.0.1";
|
||||
|
||||
src = ./src;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' eu-flag-installer.plymouth
|
||||
sed -i 's:\(^ScriptFile=\)/usr:\1'"$out"':' eu-flag-installer.plymouth
|
||||
mkdir -p $out/share/plymouth/themes/eu-flag-installer
|
||||
cp * $out/share/plymouth/themes/eu-flag-installer
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
[Plymouth Theme]
|
||||
Name=EU flag Installer
|
||||
Description=A theme that displays the EU flag Installer logo
|
||||
ModuleName=script
|
||||
|
||||
[script]
|
||||
ImageDir=/usr/share/plymouth/themes/eu-flag-installer
|
||||
ScriptFile=/usr/share/plymouth/themes/eu-flag-installer/eu-flag-installer.script
|
||||
BIN
packages/eu-flag-installer-plymouth/src/eu-flag-installer.png
Normal file
BIN
packages/eu-flag-installer-plymouth/src/eu-flag-installer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,8 @@
|
||||
image = Image("eu-flag-installer.png");
|
||||
|
||||
pos_x = Window.GetWidth()/2 - image.GetWidth()/2;
|
||||
pos_y = Window.GetHeight()/2 - image.GetHeight()/2;
|
||||
|
||||
sprite = Sprite(image);
|
||||
sprite.SetX(pos_x);
|
||||
sprite.SetY(pos_y);
|
||||
Reference in New Issue
Block a user