You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pinning nixos nixpkgs using niv in 22.05 fails? #354
I used to pin my nixos nixpkgs commit when rebuilding using niv using a technique shown to me by someone at the local hackerspace about a year ago.
To do this I copied my existing systems configuration into my homedir and initialized niv in it.
I then added a file called sources-dir.nix to the nix/ folder generated by niv:
This used to work out well until the 22.05 update. Whenever I run the command now I get this very obscure error:
building Nix...
building the system configuration...
error: the string '22.05' is not allowed to refer to a store path (such as '/nix/store/0qma2xzkmp0x3j6gb0936fimvqsp297g-nixpkgs-src')
at /nix/store/363n9qpp2aibismayc93ack9kjbs1da7-sources/nixpkgs/lib/strings.nix:562:26:
561| */
562| versionOlder = v1: v2: compareVersions v2 v1 == 1;
| ^
563|
(use '--show-trace' to show detailed location information)
Activity
nmattia commentedon Jun 13, 2022
That's an odd one! I'll try to find some time this week to reproduce, thanks for the report!
busti commentedon Jun 16, 2022
It can be reproduced using the repo I linked at the bottom of the issue post.