Skip to content

Update flake.lock, dropping unused nixpkgs input #1570

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

panchoh
Copy link

@panchoh panchoh commented Aug 8, 2025

Description of changes

On a7600ce all the inputs on flake.nix were moved to tests/flake.nix, but flake.lock was not updated correctly, and a reference to nixpkgs still remains, producing this error upon evaluation when used as an input to my flake:

evaluating file '<nix/derivation-internal.nix>'
copying "/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source" to the store...
evaluating file '/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source/flake.nix'
evaluating file '/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source/flake.nix'
warning: updating lock file '"/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source/flake.lock"':
• Removed input 'nixpkgs'
error:… while updating the lock file of flake 'path:/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source?lastModified=0&narHash=sha256-dz303vGuzWjzOPOaYkS9xSW%2BB93PSAJxvBd6CambXVA%3D'
error: opening file '/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source/flake.lock': Read-only file system

I’ve thus updated flake.lock with the standard procedure:

nix flake lock --verbose
warning: updating lock file '"/home/pancho/sandbox/NixOS/nixos-hardware/flake.lock"':
• Removed input 'nixpkgs'

which fixes the issue.

Hope that it helps. Cheers!

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

On a7600ce all the
inputs on `flake.nix` were moved to `tests/flake.nix`, but `flake.lock`
was not updated correctly, and a reference to `nixpkgs` still remains,
producing this error upon evaluation when used as an input in my flake:

    evaluating file '<nix/derivation-internal.nix>'copying "/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source" to the store...evaluating file '/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source/flake.nix'evaluating file '/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source/flake.nix'warning: updating lock file '"/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source/flake.lock"':• Removed input 'nixpkgs'error:… while updating the lock file of flake 'path:/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source?lastModified=0&narHash=sha256-dz303vGuzWjzOPOaYkS9xSW%2BB93PSAJxvBd6CambXVA%3D'error: opening file '/nix/store/xjzjf1f6nyg6yqxb6v5awf9hs14606yp-source/flake.lock': Read-only file system

I’ve thus updated `flake.lock` with the standard procedure:

```console
❯ nix flake lock --verbose
warning: updating lock file '"/home/pancho/sandbox/NixOS/nixos-hardware/flake.lock"':
• Removed input 'nixpkgs'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant