Skip to content
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

nixpkgs.git #385

Open
2 tasks done
Freed-Wu opened this issue Mar 3, 2024 · 6 comments
Open
2 tasks done

nixpkgs.git #385

Freed-Wu opened this issue Mar 3, 2024 · 6 comments
Labels

Comments

@Freed-Wu
Copy link

Freed-Wu commented Mar 3, 2024

先决条件 (Prerequisites)

项目介绍 (Project introduction)

Nixpkgs is a collection of over 60,000 software packages that can be installed with the Nix package manager. It also implements NixOS, a purely-functional Linux distribution.

上游地址与镜像方法 (Upstream & mirroring method)

https://github.com/NixOS/nixpkgs.git

镜像大小 (Mirror size)

No response

备注 (Note)

Related issues:

@iBug
Copy link
Member

iBug commented Mar 3, 2024

能否介绍一下这个仓库对终端用户有什么用途?

@Freed-Wu
Copy link
Author

Freed-Wu commented Mar 3, 2024

when user package new software to NixOS, they need git clone this package then git commit, gh pr create. If a mirror is available, it can speed up git clone.

@taoky taoky changed the title nixpkgs nixpkgs.git Mar 3, 2024
@taoky
Copy link
Member

taoky commented Mar 3, 2024

从我个人的理解来看,用镜像站的 git 版本做开发,然后给上游提交 PR 是非常怪异的事情,并且存在因为同步延迟导致 PR 出问题的可能。如果实际需求是包含所有历史的仓库太大,需要减小 clone 下来的仓库的大小,可以参考 https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ 来做,或者使用 GitHub Codespaces。

Related to: #386

@iBug
Copy link
Member

iBug commented Mar 3, 2024

This has no real use for end users. Developers are supposed to handle GitHub connectivity themselves, particularly when the goal is to submit PRs on GitHub.

@taoky
Copy link
Member

taoky commented Mar 4, 2024

nixpkgs.git 大概是有非提交 PR 的场景的——在需要 pin 住 nixpkgs 版本的时候

根据 https://api.github.com/repos/NixOS/nixpkgs 的报告,仓库大小为 4028389 KB ~= 4G,TUNA 的大小报告是 3.7G(https://mirrorz.org/list/nixpkgs.git

@taoky taoky reopened this Mar 4, 2024
@taoky
Copy link
Member

taoky commented Apr 1, 2024

考虑到 git 带来的额外 IO 与 CPU 压力,在 nix 实现了 blobless git clone 之后会考虑同步,相关 issue 参见:NixOS/nix#6111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants