mirror of
https://github.com/wentasah/ros2nix.git
synced 2025-06-09 15:52:23 +03:00
Add --no-overlay option
This commit is contained in:
parent
3315d0cd36
commit
38d2f17d89
2 changed files with 12 additions and 3 deletions
|
@ -255,6 +255,12 @@ def ros2nix(args):
|
|||
help="Generate top-level flake.nix instead of default.nix. "
|
||||
"Use with --fetch if some package.xml files are outside of the flake repo",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--overlay",
|
||||
action=argparse.BooleanOptionalAction,
|
||||
default=True,
|
||||
help="Generate overlay.nix",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--nixfmt",
|
||||
action="store_true",
|
||||
|
@ -431,7 +437,8 @@ def ros2nix(args):
|
|||
err("Failed to write derivation to disk!")
|
||||
raise e
|
||||
|
||||
generate_overlay(expressions, args)
|
||||
if args.overlay:
|
||||
generate_overlay(expressions, args)
|
||||
|
||||
if args.flake:
|
||||
generate_flake(args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue