diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-27 17:30:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-27 17:30:33 +0200 |
commit | f46b8e21e0013eeb04a2944dc85be327a896ffe7 (patch) | |
tree | 8997065bb29dcdd09fbe8f131680f2377c063e70 /README.md | |
parent | 05b2d6fc51146fe07340a58bc87fbbd99e788143 (diff) | |
parent | 3c54e850a32e4250c36bee3f118df977c3e8773d (diff) | |
download | hello-nix-f46b8e21e0013eeb04a2944dc85be327a896ffe7.tar.gz |
Merge pull request #4 from aehlig/simplify-cargo-import
Simplify cargo import
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -73,7 +73,8 @@ way as follows. pinned using [niv](https://github.com/nmattia/niv). - A [nix shell](./shell.nix) uses the derivation at the pinned snapshot of the `nixpkgs` and sets an alias for `just-mr` to - use the derived rc-file. + use the derived rc-file. It also adds a script `withRc-just-mr` + that execs `just-mr` with the derived rc-file. So to build with the correct dependencies for the checked out version, simply start a `nix-shell` at the top level of this repository and @@ -90,6 +91,11 @@ by using the current justbuild when checking out older snapshots, we can reconstruct the old actions without the need of cleaning up the local build root. +The just described way of working in a `nix-shell` using the +alias is useful for interactive development. For CI-like usage, +the script [run-tests](./run-tests) can be used that simply runs +`withRc-just-mr` in a `nix-shell`. + ## Shell commands The built-in rule `"generic"` allows to define a target by |