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

--override-input nixpkgs ?rev=abcdef does not override the rev #12138

Open
1 of 2 tasks
roberth opened this issue Jan 6, 2025 · 0 comments
Open
1 of 2 tasks

--override-input nixpkgs ?rev=abcdef does not override the rev #12138

roberth opened this issue Jan 6, 2025 · 0 comments
Labels
bug fetching Networking with the outside (non-Nix) world, input locking flakes new-cli Relating to the "nix" command

Comments

@roberth
Copy link
Member

roberth commented Jan 6, 2025

Describe the bug

The syntax --override-input foo ?rev=abcdef does not override the rev.
It appears to set the foo input to .

Steps To Reproduce

$ mkdir empty
$ cd empty
$ nix build github:edolstra/dwarffs --override-input nixpkgs ?rev=3df3c47c19dc90fec35359e89ffb52b34d2b0e94
error:
       … while updating the lock file of flake 'github:edolstra/dwarffs/09f5b6d21ce35fc1de2fd338faa89d0618534ef1?narHash=sha256-Flmc3JZFH6pehFZV3FPmwpQtiByWgbdv6INV0LmSb0M%3D'

       … while updating the flake input 'nixpkgs'

       error: path '/nix/store/0ccnxa25whszw7mgbgyzdm4nqc0zwnm8-source/flake.nix' does not exist

Expected behavior

A build with the specified input revision.

Metadata

nix-2.26.0pre20250106_daab4d1

Additional context

Checklist


Add 👍 to issues you find important.

@roberth roberth added bug new-cli Relating to the "nix" command flakes fetching Networking with the outside (non-Nix) world, input locking labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fetching Networking with the outside (non-Nix) world, input locking flakes new-cli Relating to the "nix" command
Projects
None yet
Development

No branches or pull requests

1 participant