mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-04-25 15:25:55 +03:00
[GH-ISSUE #197] Nix package is broken #90
Labels
No labels
bug
documentation
enhancement
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gitea-mirror#90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @pedorich-n on GitHub (Feb 27, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/197
Originally assigned to: @arunavo4 on GitHub.
Hello!
I am experiencing an issue similar to https://github.com/RayLabsHQ/gitea-mirror/issues/143#issuecomment-3734223131, when trying to build a Nix package:
Looking at the
buildPhase, and the package in general, I had a suspicion that it required internet access to build. The Nix CI workflow confirmed it:github.com/RayLabsHQ/gitea-mirror@c26b5574e0/.github/workflows/nix-build.yml (L42-L43)The problem is that on Linux and NixOS, sandboxing is enabled by default (not only on CI), but on MacOS, I think it's not. Sandboxing blocks internet access, meaning this package (in its current form) will never build on Linux machines.
To build a proper Nix package, until https://github.com/NixOS/nixpkgs/issues/335534 is merged, you need to use something like Fixed Output Derivation or a wrapper like bun2nix.
I'm not familiar with bun, but I am somewhat familiar with nix and packaging apps with it. I can try to help package this app so that it will be buildable on all platforms.
@arunavo4 commented on GitHub (Feb 27, 2026):
@pedorich-n would appreciate your help. I will also run this on a linux vm and check.
@arunavo4 commented on GitHub (Feb 27, 2026):
Fix verified on Linux (Ubuntu 24.04 LTS, x64)
The Nix package now builds and runs successfully on Linux with sandboxing enabled. This is fixed in PR #199.
What was done:
nanoidas an explicit dependency (was only available as a transitive dep, which broke under the isolated linker)Test environment:
nix buildcompletes successfullyHealth check output:
Screenshots of the app running from the Nix package will be attached to PR #199. This will ship in the next release.
@arunavo4 commented on GitHub (Feb 27, 2026):
Screenshots from Linux VM (Nix package)
Light mode:

Dark mode:
