-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
moar: 1.33.0 -> 2.6.1, rename to moor, modernize #435670
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
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9a7d7da
moar: rename to moor
getchoo c217cdd
moor: 1.33.0 -> 2.6.1
getchoo fedfddc
moor: modernize
getchoo 2635b47
moor: add versionCheckHook
getchoo 266fdd3
moor: add cross package to tests
getchoo ccb8f2a
moor: add getchoo to maintainers
getchoo 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
This file was deleted.
Oops, something went wrong.
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,56 @@ | ||
| { | ||
| lib, | ||
| buildGoModule, | ||
| fetchFromGitHub, | ||
| installShellFiles, | ||
| nix-update-script, | ||
| pkgsCross, | ||
| versionCheckHook, | ||
| }: | ||
|
|
||
| buildGoModule (finalAttrs: { | ||
| pname = "moor"; | ||
| version = "2.6.1"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "walles"; | ||
| repo = "moor"; | ||
| tag = "v${finalAttrs.version}"; | ||
| hash = "sha256-5MiTxspdNTFfLnif5C3gcQ0suxRrjerlZl2+kPAjiBM="; | ||
| }; | ||
|
|
||
| vendorHash = "sha256-ve8QT2dIUZGTFYESt9vIllGTan22ciZr8SQzfqtqQfw="; | ||
|
|
||
| nativeBuildInputs = [ installShellFiles ]; | ||
|
|
||
| ldflags = [ | ||
| "-s" | ||
| "-w" | ||
| "-X" | ||
| "main.versionString=v${finalAttrs.version}" | ||
| ]; | ||
|
|
||
| nativeInstallCheckInputs = [ versionCheckHook ]; | ||
| doInstallCheck = true; | ||
|
|
||
| postInstall = '' | ||
| installManPage ./moor.1 | ||
| ''; | ||
|
|
||
| passthru = { | ||
| tests.cross-aarch64 = pkgsCross.aarch64-multiplatform.moor; | ||
| updateScript = nix-update-script { }; | ||
| }; | ||
|
|
||
| meta = { | ||
| description = "Nice-to-use pager for humans"; | ||
| homepage = "https://github.com/walles/moor"; | ||
| changelog = "https://github.com/walles/moor/releases/tag/v${finalAttrs.version}"; | ||
| license = lib.licenses.bsd2WithViews; | ||
| mainProgram = "moor"; | ||
| maintainers = with lib.maintainers; [ | ||
| foo-dogsquared | ||
| getchoo | ||
| ]; | ||
| }; | ||
| }) | ||
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
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.
I have been told not to use pkgsCross within package definitions, even within passthru tests.
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.
This is the first time I'm really hearing of that
I'm not exactly sure why we shouldn't either. There's the evaluation performance penalty obviously, but this is only being run in OfBorg for one package. I believe that should be fine?
I'd also question how else we're supposed to ensure cross builds for packages still work without
pkgsCross. Even in the code that was finally merged with that PR for example,nixosTests.winestill uses it. Cross build regressions are super common in PRs, so this would definitely be a hole that needs to be filledIf there's something I'm missing here and this is a bigger issue, I'd really recommend documenting it @Ericson2314
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.
I'll defer to @alyssais on this. I don't get why we cannot just run
pkgsCross.aarch64-multiplatform.moor.tests, test all packages cross compiled. Forcing cross tests for some packages feels ad hoc to me.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.
I think it's basically harmless in
passthru.tests. Eventually, it would be nice to make pkgsCross not visible inside packages, but I don't see this as a blocker because we can have some other stage where we add cross tests to packages that need it. Even if we had a way to automatically a cross test build on every package in OfBorg, we'd still need a way to mark which packages were expected to work.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.
OK, sounds good!