fix: Clean up/fix nix assets #885
No reviewers
Labels
No labels
Bug
Cherry-picking
Database
Dependencies
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/Federation
Matrix/MSC
Matrix/Media
Meta
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: continuwuation/continuwuity#885
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Shuroii/continuwuity:the-nix-story"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR:
nix/
files usingnixpkgs fmt
nixfmt
the-nix-storyto fix: Flakefix: Flaketo chore: Clean up/fix nix assetschore: Clean up/fix nix assetsto WIP: chore: Clean up/fix nix assets265cb5703f
toe9bc416b29
Do we use squash commits or merges? Might need to clean up the commits if the latter is true.
WIP: chore: Clean up/fix nix assetsto chore: Clean up/fix nix assetsWe usually try to rebase & fast-forward, but squash in exceptional circumstances
Want me to compact my commits into one, then? Or do something else? I should've probably made formatting the files a separate commit.
You didn't change any code, so this entire thing could probably just be a
style
commit. If you want I can just squash merge and override the commit title, saves you the troubleI did change some parts of the Nix code, which is responsible for allowing the people that import this flake into their NixOS configuration (or similar) to build and run continuwuity. RocksDB wasn't correctly building and I removed a whole bunch of unused packages (OCI containers, mdbook, etc).
Making it a
fix
commit also works, but I feel likestyle
is wrong here.Oh okay my mistake, I only skimmed for
.rs
changes lmao. Can merge as a fix if that's proper.I need to figure out what's causing CI to explode first, I literally don't have the option to merge until preflight is green
Yep, take your time.
Found what's causing CI to fail
@ -170,0 +109,4 @@
#
postPatch = ''
# Fix gcc-13 build failures due to missing <cstdint> and
# <system_error> includes, fixed upstyream sice 8.x
Whoops, slipped by me. That's from nixpkgs.
Gonna fix that.
chore: Clean up/fix nix assetsto fix: Clean up/fix nix assetsHmm, I seem to encounter an error while building RocksDB while using this branch:
Is that something related to this PR? iirc some hash mismatch was mentioned in the main room at some point, idk if it's related
I'll see if I can build musl binaries on NixOS. Only tried the output of
nix build
to verify that it worked, which just builds the default output. Hash mismatch is also fixed in this PR but that's not related to this error; RocksDB just fails to build on musl.FWIW, big formatting commits should be their own commits separate to any changes so they can be added to the git-blame-ignore-revs. Not important when you're rewriting all formatted code in the tho, don't worry about it here
I don't have a great way of testing if it builds, but I did fix the current issue. @nex could you please check if it builds on your system now?
Still fails to compile for
nix build .#static-x86_64-linux-musl
Re:
Can we please try to fix up the commits here a bit anyways. It's really hard to review both of the commits with formatting in them and I can't really be sure that nothing slipped through >.<
Difftastic does help with noisy diffs @Aviac, unfortunately, I can't get forgejo to use it.
5dba10af21
to065b724341
I cleaned up the commits (largely, I think the style commits could be merged into one but I don't know how to do that easily so I'm not gonna touch it) and am now investigating the build issue again.
I don't have my rig until the start of next week, so if someone else could review that'd be grand as I don't have the compute to test
Ran a build on my mac. I have no idea what I'm doing, I just ran
nix build
at the root. I get:But it seems to build successfully! Or at least it exited without erroring.
side note: What is nix even doing half the time? Saying it's compiling dependencies whilst using like one core 😭
Thanks for cleaning it up. Let me know if I can help you with the musl builds (they are still failing Jade (at least for me))
If you give me a specific command to run I can do that tomorrow morning. I haven't used nix before 😅
You can try
nix build .#static-x86_64-linux-musl
although I don't know if and how that works on darwin nix. I have no experience with nix on MacOS ^^'Well, different error
Ok, I'm out of my depth now when it comes to fixing the build issue on musl. Can anyone try to reproduce it on main with just the cargo hash changed? I'd like to know if it was my PR that broke it or if it simply never worked to begin with.
I get the same issue as my last post when building from #891 - I think this is just Nix being unable to cross-build
I don't currently have a linux system with nix to test with right now
Yeah, I run into a different issue each time, I don't think it's related to this PR.
In that case I'll get this merged today
If I may, Im do have a nix linux x86 right now, so I can test with building this
I just built from this, and it works successfully
Drop-in works fine on my x86-linux nixos server
065b724341
toe6b1de763c
e6b1de763c
tob5bf68b8c8