nixpkgs/maintainers
Jan Tojnar 71c246c785
maintainers/scripts/update.nix: Run update scripts from the worktree
`update.nix` extracts `passthru.updateScript` attributes in the main repo
and when they are relative paths (e.g. `./update.sh`), Nix will resolve them
to absolute paths in the main repo.

Update scripts can use $(dirname $0) to get the location of files they
should update but that would point to the main repo.
We want them to modify the appropriate git worktree instead
so we replace the prefix accordingly.

`git rev-parse --show-toplevel` will resolve symlinks but, fortunately,
Nix will do that as well, so the path will match:

https://github.com/NixOS/nixpkgs/pull/98304#issuecomment-695761754
2020-09-20 20:12:34 +02:00
..
scripts maintainers/scripts/update.nix: Run update scripts from the worktree 2020-09-20 20:12:34 +02:00
maintainer-list.nix Merge pull request #78143 from mtreca/master 2020-09-13 11:44:01 +01:00
team-list.nix teams: add cinnamon team 2020-09-07 23:46:59 +02:00