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
inav: init at 2.0.0-rc2; betaflight: 3.2.3 -> 3.4.0-rc4 #40978
Conversation
@@ -21,8 +19,8 @@ in stdenv.mkDerivation rec { | |||
src = fetchFromGitHub { | |||
owner = "betaflight"; | |||
repo = "betaflight"; | |||
rev = "v${version}"; | |||
sha256 = "0vbjyxfjxgpaiiwvj5bscrlfikzp3wnxpmc4sxcz5yw5mwb9g428"; | |||
rev = "041362614bac4aaed4c0e4cc163a1ba99139dfdc"; |
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.
Why stop using the version?
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.
It's because of the first line in postPatch
; the short form of the revision is baked into the firmware images. If I use the tag, I will still need to store the commit id someplace, unless you know of a way to convert the tag to a commit id at build time, without pulling in any extra buildInputs. Is it cached someplace in the src derviation by the builder?
I'll add a note for now.
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 didn't notice it was being used there. I looked into it some, but it doesn't look like there is a better solution than what you have, unless leaveDotGit
works here. It looks like leaveDotGit
has some issues of its own though #8567 (comment)
src = fetchFromGitHub { | ||
owner = "iNavFlight"; | ||
repo = "inav"; | ||
rev = "03a5c1922a7c06e18d33de9d0cc09c709b37fcc6"; |
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.
It would be nice to use the version tag here too.
These commits are rather innocuous. Can I get some approval here? |
Sorry, I didn't see you updated the branch (I don't think GitHub sends notifications for branch pushes.). Let's push this along. @GrahamcOfBorg build betaflight inav |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: betaflight, inav Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: betaflight, inav Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: betaflight, inav Partial log (click to expand)
|
I've removed those non-building platforms from |
@GrahamcOfBorg build betaflight inav |
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: betaflight, inav Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: betaflight, inav Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: betaflight, inav Partial log (click to expand)
|
Looks good 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 don't have any hardware to validate this, but it built a bunch of things fine.
Love the work on the skipped targets. (Actually documenting what's wrong.)
LGTM
Motivation for this change
betaflight version bump and inav init (fork of betaflight with almost identical build)
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)