HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

nixpkgs-review — Review pull requests in the NixOS packages repository (nixpkgs). After a successful build, a `nix-sh

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandpullnixpkgs-reviewreviewrequestsclinixos

Problem

How to use the nixpkgs-review command: Review pull requests in the NixOS packages repository (nixpkgs). After a successful build, a nix-shell with all built packages is started. More information: <https://github.com/Mic92/nixpkgs-review#usage>.

Solution

nixpkgs-review — Review pull requests in the NixOS packages repository (nixpkgs). After a successful build, a nix-shell with all built packages is started. More information: <https://github.com/Mic92/nixpkgs-review#usage>.

Build changed packages in the specified pull request:
nixpkgs-review pr {{pr_number|pr_url}}


Build changed packages and post a comment with a report (requires setting up a token in hub, gh, or the $GITHUB_TOKEN environment variable):
nixpkgs-review pr --post-result {{pr_number|pr_url}}


Build changed packages and print a report:
nixpkgs-review pr --print-result {{pr_number|pr_url}}


Build changed packages in a local commit:
nixpkgs-review rev {{HEAD}}


Build changed packages that haven't been committed yet:
nixpkgs-review wip


Build changed packages that have been staged:
nixpkgs-review wip --staged

Code Snippets

Build changed packages in the specified pull request

nixpkgs-review pr {{pr_number|pr_url}}

Build changed packages and post a comment with a report (requires setting up a token in `hub`, `gh`, or the `$GITHUB_TOKEN` environment variable)

nixpkgs-review pr --post-result {{pr_number|pr_url}}

Build changed packages and print a report

nixpkgs-review pr --print-result {{pr_number|pr_url}}

Build changed packages in a local commit

nixpkgs-review rev {{HEAD}}

Build changed packages that haven't been committed yet

nixpkgs-review wip

Context

tldr-pages: common/nixpkgs-review

Revisions (0)

No revisions yet.