feat: option for package local hash

This commit is contained in:
Max Beutelspacher 2025-02-03 16:17:55 +01:00
parent 56677a3cbc
commit 72a061c8c1
2 changed files with 42 additions and 24 deletions

View file

@ -113,10 +113,10 @@ the [Autoware][] project as an example.
```
usage: ros2nix [-h]
[--output OUTPUT | --output-as-ros-pkg-name | --output-as-nix-pkg-name]
[--output-dir OUTPUT_DIR] [--fetch] [--patches | --no-patches]
[--distro DISTRO] [--src-param SRC_PARAM]
[--source-root SOURCE_ROOT] [--do-check]
[--extra-build-inputs DEP1,DEP2,...]
[--output-dir OUTPUT_DIR] [--fetch] [--use-package-git-hash]
[--patches | --no-patches] [--distro DISTRO]
[--src-param SRC_PARAM] [--source-root SOURCE_ROOT]
[--do-check] [--extra-build-inputs DEP1,DEP2,...]
[--extra-propagated-build-inputs DEP1,DEP2,...]
[--extra-check-inputs DEP1,DEP2,...]
[--extra-native-build-inputs DEP1,DEP2,...] [--flake]
@ -149,6 +149,13 @@ options:
determined from the local git work tree. sourceRoot
attribute is set if needed and not overridden by
--source-root. (default: False)
--use-package-git-hash
When using --fetch, use the git hash of the package
sub-directory instead of the one of the upstream
repo.This will lead to longer generation time and
multiple source checkouts when building but will safe
rebuilds of packages that have not changed. (default:
False)
--patches, --no-patches
Add local git commits not present in git remote named
"origin" to patches in the generated Nix expression.