tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
m1n1: add branding
Jasi
6 months ago
fd8c443c
81adf0a3
+22
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
m1
m1n1
package.nix
+22
pkgs/by-name/m1/m1n1/package.nix
···
6
6
source-code-pro,
7
7
python3Packages,
8
8
nix-update-script,
9
9
+
nixos-icons,
10
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
23
+
postPatch = lib.optionalString withBranding ''
24
24
+
ln -s ${nixos-icons}/share/icons/hicolor/128x128/apps/nix-snowflake.png data/custom_128.png
25
25
+
ln -s ${nixos-icons}/share/icons/hicolor/256x256/apps/nix-snowflake.png data/custom_256.png
26
26
+
'';
27
27
+
21
28
nativeBuildInputs = [
22
29
imagemagick
23
30
];
···
33
40
makeFlags = [
34
41
"ARCH=${stdenv.cc.targetPrefix}"
35
42
"RELEASE=1"
43
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
84
+
longDescription = ''
85
85
+
m1n1 is the bootloader developed by the Asahi Linux project to
86
86
+
bridge the Apple (XNU) boot ecosystem to the Linux boot ecosystem.
87
87
+
88
88
+
What it does:
89
89
+
90
90
+
- Initializes hardware
91
91
+
- Puts up a pretty Nix logo
92
92
+
- Loads embedded (appended) payloads, which can be:
93
93
+
- Device Trees (FDTs), with automatic selection based on the platform
94
94
+
- Initramfs images (compressed CPIO archives)
95
95
+
- Kernel images in Linux ARM64 boot format (optionally compressed)
96
96
+
- Configuration statements
97
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; [