diff options
author | Silvan Mosberger <silvan.mosberger@tweag.io> | 2023-08-04 20:02:54 +0200 |
---|---|---|
committer | Silvan Mosberger <silvan.mosberger@tweag.io> | 2023-08-13 22:04:57 +0200 |
commit | 5789cc3754a8b97900d09bca0e3ef29c5879e13b (patch) | |
tree | b048310f4775c307093d2341c5297723865ab027 /pkgs/README.md | |
parent | 67ae88c0724a03b770baa013f27afcc960c9f002 (diff) |
CONTRIBUTING.md: Clean up "Making patches" section
Moving and collecting bits into the appropriate places, also writing some new sentences
Diffstat (limited to 'pkgs/README.md')
-rw-r--r-- | pkgs/README.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/README.md b/pkgs/README.md index 2f511a35c5d74..055c8e76a5c4a 100644 --- a/pkgs/README.md +++ b/pkgs/README.md @@ -544,6 +544,15 @@ This is how the pull request looks like in this case: [https://github.com/NixOS/ ## Testing changes | Package tests {#sec-package-tests} +- update pkg + - `nix-env -iA pkg-attribute-name -f <path to your local nixpkgs folder>` +- add pkg + - Make sure it’s in `pkgs/top-level/all-packages.nix` + - `nix-env -iA pkg-attribute-name -f <path to your local nixpkgs folder>` +- _If you don’t want to install pkg in you profile_. + - `nix-build -A pkg-attribute-name <path to your local nixpkgs folder>` and check results in the folder `result`. It will appear in the same directory where you did `nix-build`. +- If you installed your package with `nix-env`, you can run `nix-env -e pkg-name` where `pkg-name` is as reported by `nix-env -q` to uninstall it from your system. + To run the main types of tests locally: - Run package-internal tests with `nix-build --attr pkgs.PACKAGE.passthru.tests` |