nmattia / niv

Easy dependency management for Nix projects
https://github.com/nmattia/niv
MIT License
1.52k stars 74 forks source link

Bug while niv update #346

Closed shd101wyy closed 2 years ago

shd101wyy commented 2 years ago

$ niv update nixpkgs -b nixos-21.11 Update nixpkgs FATAL: Could not read the output of 'nix-prefetch-url'. This is a bug. Please create a ticket:

https://github.com/nmattia/niv/issues/new

Thanks! I'll buy you a beer. command: nix-prefetch-url--unpack https://github.com/NixOS/nixpkgs/archive/2128d0aa28edef51fd8fef38b132ffc0155595df.tar.gz --name 2128d0aa28edef51fd8fef38b132ffc0155595df.tar.gz stdout:

stderr: nix-prefetch-url: /nix/store/jvjchabdmcxlwjhbiii5sy6d2hcg6z7r-glibc-2.31/lib/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/l6mx3ksrzf7pnw0jyaalmg6kcwhb5gz3-sqlite-3.36.0/lib/libsqlite3.so.0)

FATAL: One or more packages failed to update: nixpkgs: ExitFailure 1 ERROR: ExitFailure 1

nmattia commented 2 years ago

Hi, looks like a glibc mismatch. What happens if you run the nix-prefetch-url command on its own?

shd101wyy commented 2 years ago

It seems to be working after I upgrade the nixpkgs version :+1: