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
source-code-pro,
7
python3Packages,
8
nix-update-script,
0
0
9
}:
10
stdenv.mkDerivation (finalAttrs: {
11
pname = "m1n1";
···
18
hash = "sha256-J1PZVaEdI6gx/qzsoVW1ehRQ/ZDKzdC1NgIGgBqxQ+0=";
19
};
20
0
0
0
0
0
21
nativeBuildInputs = [
22
imagemagick
23
];
···
33
makeFlags = [
34
"ARCH=${stdenv.cc.targetPrefix}"
35
"RELEASE=1"
0
36
];
37
38
enableParallelBuilding = true;
···
73
74
meta = {
75
description = "Bootloader to bridge the Apple (XNU) boot to Linux boot";
0
0
0
0
0
0
0
0
0
0
0
0
0
0
76
homepage = "https://github.com/AsahiLinux/m1n1";
77
changelog = "https://github.com/AsahiLinux/m1n1/releases/tag/${finalAttrs.src.tag}";
78
license = with lib.licenses; [
···
6
source-code-pro,
7
python3Packages,
8
nix-update-script,
9
+
nixos-icons,
10
+
withBranding ? true,
11
}:
12
stdenv.mkDerivation (finalAttrs: {
13
pname = "m1n1";
···
20
hash = "sha256-J1PZVaEdI6gx/qzsoVW1ehRQ/ZDKzdC1NgIGgBqxQ+0=";
21
};
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
+
28
nativeBuildInputs = [
29
imagemagick
30
];
···
40
makeFlags = [
41
"ARCH=${stdenv.cc.targetPrefix}"
42
"RELEASE=1"
43
+
(lib.optionalString withBranding "LOGO=custom")
44
];
45
46
enableParallelBuilding = true;
···
81
82
meta = {
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
+
'';
98
homepage = "https://github.com/AsahiLinux/m1n1";
99
changelog = "https://github.com/AsahiLinux/m1n1/releases/tag/${finalAttrs.src.tag}";
100
license = with lib.licenses; [