-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
m1n1: init at 1.4.21 #420888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
m1n1: init at 1.4.21 #420888
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| { | ||
| lib, | ||
| stdenv, | ||
| fetchFromGitHub, | ||
| imagemagick, | ||
| source-code-pro, | ||
| nix-update-script, | ||
| }: | ||
| stdenv.mkDerivation (finalAttrs: { | ||
| pname = "m1n1"; | ||
| version = "1.4.21"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "AsahiLinux"; | ||
| repo = "m1n1"; | ||
| tag = "v${finalAttrs.version}"; | ||
| hash = "sha256-0ZnDexY/Sf2TJFfUv/YelCctFJVENffWqBU0r0azD0M="; | ||
| }; | ||
|
|
||
| nativeBuildInputs = [ | ||
| imagemagick | ||
| ]; | ||
|
|
||
| postConfigure = '' | ||
| patchShebangs --build font/makefont.sh | ||
| FONT_PATH=${source-code-pro}/share/fonts/opentype/SourceCodePro-Bold.otf | ||
| rm font/{SourceCodePro-Bold.ttf,font.bin,font_retina.bin} | ||
| ./font/makefont.sh 8 16 12 $FONT_PATH font/font.bin | ||
| ./font/makefont.sh 16 32 25 $FONT_PATH font/font_retina.bin | ||
| ''; | ||
|
|
||
| makeFlags = [ | ||
| "ARCH=${stdenv.cc.targetPrefix}" | ||
| "RELEASE=1" | ||
| ]; | ||
|
|
||
| enableParallelBuilding = true; | ||
|
|
||
| installPhase = '' | ||
| runHook preInstall | ||
|
|
||
| install -Dm644 build/m1n1.bin -t $out/lib/m1n1/ | ||
|
|
||
| install -Dm644 3rdparty_licenses/LICENSE.* -t $out/share/doc/m1n1/licenses/ | ||
| install -Dm644 LICENSE -t $out/share/doc/m1n1/licenses/ | ||
|
|
||
| runHook postInstall | ||
| ''; | ||
|
|
||
| passthru = { | ||
| updateScript = nix-update-script { }; | ||
| }; | ||
|
|
||
| meta = { | ||
| description = "Bootloader to bridge the Apple (XNU) boot to Linux boot"; | ||
| homepage = "https://github.com/AsahiLinux/m1n1"; | ||
| changelog = "https://github.com/AsahiLinux/m1n1/releases/tag/${finalAttrs.src.tag}"; | ||
| license = with lib.licenses; [ | ||
| # m1n1 embeds several libraries, all of which cannot be | ||
| # unvendored easily. | ||
|
|
||
| # m1n1, minlzma, musl-libc | ||
| mit | ||
| # libfdt: dual BSD2 and GPL-2-or-later | ||
|
This conversation was marked as resolved.
Outdated
|
||
| # tinf: zlib | ||
| # arm-trusted-firmware: BSD3 | ||
| # dlmalloc: CC0 | ||
| # PDCLib: CC0 | ||
| # Source Code Pro: OFL1.1 | ||
| # dwc3: BSD3 and GPL-2-or-later | ||
| cc0 | ||
| ofl | ||
| zlib | ||
| bsd2 | ||
| gpl2Plus | ||
| bsd3 | ||
| asl20 | ||
| ]; | ||
| maintainers = with lib.maintainers; [ normalcea ]; | ||
| platforms = lib.platforms.aarch64; | ||
| }; | ||
| }) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually don't list licenses of build dependencies here, but only these of the project we're building (which is MIT).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change applied.