| commit | d87dea69c0612edddafe6570465075b57142b1c3 | [log] [tgz] |
|---|---|---|
| author | Colin Nelson <colnnelson@fuchsia.infra.roller.google.com> | Mon Apr 21 17:29:57 2025 -0700 |
| committer | Copybara-Service <copybara-worker@google.com> | Mon Apr 21 17:32:55 2025 -0700 |
| tree | 33d271768e60c21a773dc395f71d5b33de40b8a5 | |
| parent | a3a7db5cee4f06d2d701cbc409a36d18a2e9eecd [diff] |
[roll] Roll fuchsia [gitignore]: ignore shell.nix
nix-shell is a tool that allows engineers to create ephemeral
development environments.
An example shell.nix may look like:
```
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [
gnugrep
gnused
];
packages = with pkgs.buildPackages; [
gnugrep
gnused
fastfetch
];
shellHook = ''
export PATH=$(pwd)/.jiri_root/bin:$PATH
source "$(pwd)/scripts/fx-env.sh"
export FOO="bar"
'';
}
```
This will (when in conjunction with a tool like direnv) allow for an
engineer to do the following:
```
$ pwd
/home
$ which fx
fx not found
$ cd fuchsia
direnv: loading ~/fuchsia/.envrc
$ which fx
/home/fuchsia/.jiri_root/bin/fx
$ echo "${FOO}"
bar
$ cd ..
direnv: unloading
$ echo "${FOO}"
$
```
As these tools may be engineer-specific or even checkout-specific it is
best they be ignored.
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1256965
Original-Revision: 620cd429e5467c7b835998477d9c6c7d32e17dd1
GitOrigin-RevId: 26a97aa8e05e8b699a07f5b22076bde44e46f13b
Change-Id: I956536a452d1250f12fd22df295807ef834b5cbe
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.