mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2025-01-06 03:27:17 +03:00
3521834abd
I try to convert strings to integers so the configuration is less awkward. Nix doesn't do `0x______` integers. So since colours are never written in base ten, let's allow strings.
22 lines
463 B
Nix
22 lines
463 B
Nix
{ lib, runCommand, mobile-nixos }:
|
|
|
|
let
|
|
assets = runCommand "boot-splash-assets" {} ''
|
|
mkdir -p $out
|
|
cp ${../../artwork/logo/logo.white.svg} $out/logo.svg
|
|
'';
|
|
in
|
|
mobile-nixos.mkLVGUIApp {
|
|
name = "boot-splash.mrb";
|
|
executablePath = "libexec/boot-splash.mrb";
|
|
enableDebugInformation = true;
|
|
src = lib.cleanSource ./.;
|
|
rubyFiles = [
|
|
"configuration.rb"
|
|
"ui.rb"
|
|
"main.rb"
|
|
];
|
|
inherit assets;
|
|
assetsPath = "boot-splash/assets";
|
|
}
|