1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-11 21:17:45 +03:00
mobile-nixos/boot/splash/default.nix
Samuel Dionne-Riel b6a3a7a427 boot/splash: Use symlink for logo artwork
This will allow a single build to be made, instead of one build per
logo.
2023-05-05 16:13:10 -04:00

22 lines
443 B
Nix

{ lib, runCommand, mobile-nixos }:
let
assets = runCommand "boot-splash-assets" {} ''
mkdir -p $out
ln -s /etc/logo.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";
}