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
|
@ -103,8 +103,8 @@ usage: ros2nix [-h]
|
||||||
[--extra-propagated-build-inputs DEP1,DEP2,...]
|
[--extra-propagated-build-inputs DEP1,DEP2,...]
|
||||||
[--extra-check-inputs DEP1,DEP2,...]
|
[--extra-check-inputs DEP1,DEP2,...]
|
||||||
[--extra-native-build-inputs DEP1,DEP2,...] [--flake]
|
[--extra-native-build-inputs DEP1,DEP2,...] [--flake]
|
||||||
[--nixfmt] [--compare] [--copyright-holder COPYRIGHT_HOLDER]
|
[--overlay | --no-overlay] [--nixfmt] [--compare]
|
||||||
[--license LICENSE]
|
[--copyright-holder COPYRIGHT_HOLDER] [--license LICENSE]
|
||||||
package.xml [package.xml ...]
|
package.xml [package.xml ...]
|
||||||
|
|
||||||
positional arguments:
|
positional arguments:
|
||||||
|
@ -159,6 +159,8 @@ options:
|
||||||
--flake Generate top-level flake.nix instead of default.nix.
|
--flake Generate top-level flake.nix instead of default.nix.
|
||||||
Use with --fetch if some package.xml files are outside
|
Use with --fetch if some package.xml files are outside
|
||||||
of the flake repo (default: False)
|
of the flake repo (default: False)
|
||||||
|
--overlay, --no-overlay
|
||||||
|
Generate overlay.nix (default: True)
|
||||||
--nixfmt Format the resulting expressions with nixfmt (default:
|
--nixfmt Format the resulting expressions with nixfmt (default:
|
||||||
False)
|
False)
|
||||||
--compare Don't write any file, but check whether writing the
|
--compare Don't write any file, but check whether writing the
|
||||||
|
|
|
@ -255,6 +255,12 @@ def ros2nix(args):
|
||||||
help="Generate top-level flake.nix instead of default.nix. "
|
help="Generate top-level flake.nix instead of default.nix. "
|
||||||
"Use with --fetch if some package.xml files are outside of the flake repo",
|
"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(
|
parser.add_argument(
|
||||||
"--nixfmt",
|
"--nixfmt",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
@ -431,7 +437,8 @@ def ros2nix(args):
|
||||||
err("Failed to write derivation to disk!")
|
err("Failed to write derivation to disk!")
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
generate_overlay(expressions, args)
|
if args.overlay:
|
||||||
|
generate_overlay(expressions, args)
|
||||||
|
|
||||||
if args.flake:
|
if args.flake:
|
||||||
generate_flake(args)
|
generate_flake(args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue