Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos-rebuild-ng: --override-input is incorrectly passed #375174

Closed
3 tasks done
Gerg-L opened this issue Jan 19, 2025 · 2 comments
Closed
3 tasks done

nixos-rebuild-ng: --override-input is incorrectly passed #375174

Gerg-L opened this issue Jan 19, 2025 · 2 comments
Labels
0.kind: bug Something is broken

Comments

@Gerg-L
Copy link
Contributor

Gerg-L commented Jan 19, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

--override-input foo bar is being passed to nix as --override-input foo --override-input bar

Steps to reproduce

run nixos-rebuild-ng with --override-input

Expected behaviour

--override-input is passed with two arguments

Screenshots

No response

Relevant log output

$ nixos-rebuild-ng dry-build --override-input nixpkgs github:nixos/nixpkgs
building the system configuration...
error: getting status of '/home/gerg/Projects/nixos/--override-input': No such file or directory
Command '['nix', '--extra-experimental-features', 'nix-command flakes', 'build', '--print-out-paths', '/home/gerg/Projects/nixos#nixosConfigurations.gerg-desktop.config.system.build.toplevel', '--override-input', 'nixpkgs', '--override-input', 'github:nixos/nixpkgs', '--dry-run']' returned non-zero exit status 1.

Additional context

No response

System metadata

$ nix-shell -p nix-info --run "nix-info -m"

  • system: "x86_64-linux"
  • host os: Linux 6.10.11-gerg, NixOS, 25.05 (Warbler), 25.05.20250116.5df4362
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.26.0pre
  • nixpkgs: /nix/store/l9nb64iii15y0nr37qrs1cfm6rlpg6gh-source

Notify maintainers

--- @thiagokokada

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@Gerg-L Gerg-L added the 0.kind: bug Something is broken label Jan 19, 2025
@thiagokokada
Copy link
Contributor

Very likely fixed in #374063.

@Gerg-L
Copy link
Contributor Author

Gerg-L commented Jan 20, 2025

oh yeah, i tested against master but forgot -- after my nix run so it still errored but differently
on running the correct command all works

@Gerg-L Gerg-L closed this as completed Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants