lol

m1n1: add branding

Jasi fd8c443c 81adf0a3

+22
+22
pkgs/by-name/m1/m1n1/package.nix
··· 6 6 source-code-pro, 7 7 python3Packages, 8 8 nix-update-script, 9 + nixos-icons, 10 + withBranding ? true, 9 11 }: 10 12 stdenv.mkDerivation (finalAttrs: { 11 13 pname = "m1n1"; ··· 18 20 hash = "sha256-J1PZVaEdI6gx/qzsoVW1ehRQ/ZDKzdC1NgIGgBqxQ+0="; 19 21 }; 20 22 23 + postPatch = lib.optionalString withBranding '' 24 + ln -s ${nixos-icons}/share/icons/hicolor/128x128/apps/nix-snowflake.png data/custom_128.png 25 + ln -s ${nixos-icons}/share/icons/hicolor/256x256/apps/nix-snowflake.png data/custom_256.png 26 + ''; 27 + 21 28 nativeBuildInputs = [ 22 29 imagemagick 23 30 ]; ··· 33 40 makeFlags = [ 34 41 "ARCH=${stdenv.cc.targetPrefix}" 35 42 "RELEASE=1" 43 + (lib.optionalString withBranding "LOGO=custom") 36 44 ]; 37 45 38 46 enableParallelBuilding = true; ··· 73 81 74 82 meta = { 75 83 description = "Bootloader to bridge the Apple (XNU) boot to Linux boot"; 84 + longDescription = '' 85 + m1n1 is the bootloader developed by the Asahi Linux project to 86 + bridge the Apple (XNU) boot ecosystem to the Linux boot ecosystem. 87 + 88 + What it does: 89 + 90 + - Initializes hardware 91 + - Puts up a pretty Nix logo 92 + - Loads embedded (appended) payloads, which can be: 93 + - Device Trees (FDTs), with automatic selection based on the platform 94 + - Initramfs images (compressed CPIO archives) 95 + - Kernel images in Linux ARM64 boot format (optionally compressed) 96 + - Configuration statements 97 + ''; 76 98 homepage = "https://github.com/AsahiLinux/m1n1"; 77 99 changelog = "https://github.com/AsahiLinux/m1n1/releases/tag/${finalAttrs.src.tag}"; 78 100 license = with lib.licenses; [