Skip to content

Conversation

jjyr
Copy link

@jjyr jjyr commented Aug 4, 2025

Adds new package for https://github.com/nervosnetwork/ckb. a public blockchain.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle! 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Aug 4, 2025
Copy link
Contributor

@acid-bong acid-bong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moin and welcome to Nixpkgs. Here's a couple recommendations and common nitpicks. Make sure to amend/squash your edits to the init commit, including formatting (my suggestions don't include excessive whitespace etc)

@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Aug 4, 2025
@acid-bong
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 430842

Logs: https://github.com/acid-bong/nixpkgs-review-gha/actions/runs/16717694461


x86_64-linux

✅ 1 package built:
  • ckb

aarch64-linux

✅ 1 package built:
  • ckb

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • ckb

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • ckb

Copy link
Contributor

@acid-bong acid-bong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GG. Now you need to wait for someone with merge permissions

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 4, 2025
@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Aug 11, 2025

cargoHash = "sha256-R7XV//e6n6afbad7HgwlcNwQRdO0xFZ0UGy1SU294Fs=";

buildFeatures = lib.optionals (stdenv.hostPlatform.isDarwin) [ "portable" ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to have parens around a single value:

Suggested change
buildFeatures = lib.optionals (stdenv.hostPlatform.isDarwin) [ "portable" ];
buildFeatures = lib.optionals stdenv.hostPlatform.isDarwin [ "portable" ];

Personally, I'd format this with a multiline list, in anticipation of additional build features being specified in the future:

Suggested change
buildFeatures = lib.optionals (stdenv.hostPlatform.isDarwin) [ "portable" ];
buildFeatures = lib.optionals stdenv.hostPlatform.isDarwin [
"portable"
];

But these are both nits (and/or preferences), and aren't critical.

nativeInstallCheckInputs = [ versionCheckHook ];

meta = {
description = "The Nervos CKB is a public permissionless blockchain, and the layer 1 of Nervos network.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is minor, but blocking:

Suggested change
description = "The Nervos CKB is a public permissionless blockchain, and the layer 1 of Nervos network.";
description = "Public permissionless blockchain, and the layer 1 of Nervos network";

See https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#meta-attributes

  • Not start with the definite or an indefinite article.
  • Not start with the package name.
    • More generally, it should not refer to the package name.
  • Not end with a period (or any punctuation for that matter).

In this case "the" is a definite article.

(Note, if needed you can include more detail and/or examples in meta.longDescription)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants