Nix Flakes | 866 Members | |
| 168 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 Apr 2024 | ||
I forgot to run nix flake update beforehand ... otherwise the rebuild wouldn't have been aware of the new inputs right 🤦♂️ | 10:29:02 | |
alright this was a catastrophe ... seems the nixos-23-11 branch lacks zsh autosuggestions flag, therefore I just reverted back to nixpkgs-unstable ... | 11:27:26 | |
| * alright this was a catastrophe ... seems the However I'm not sure if this is coming from me pinning | 11:28:08 | |
| 17:17:09 | ||
| 22 Apr 2024 | ||
| 11:22:46 | ||
What commit of nixpkgs does nix build nixpkgs#foo use? | 11:37:04 | |
| Current version of the channel your system or user environment has? | 12:31:53 | |
How does that relate to nix registry? | 12:32:37 | |
If that's the case, why does nix build --eval 'expression containing <nixpkgs>' require the --impure flag, but nix build nixpkgs#foo does not. Is it somehow pure? | 12:34:45 | |
Docs say: --impure: Allow access to mutable paths and repositories., so does nix build nixpkgs#foo not use the mutable paths? | 12:35:48 | |
| I'm a little bit confused on the difference between registries and channels, and which are considered immutable | 12:36:20 | |
Also, if that's the case, why does nix build sometimes fetch nixpkgs from GitHub, even though the channel hasn't changed? | 12:37:08 | |
I believe I have a case on my machine where nix build nixpkgs#foo works, but nix-build <nixpkgs> -A foo does not work (build error) | 12:39:05 | |
nix build --impure --expr '(import <nixpkgs> {}).foo' also encounters a build error. How can this kind of error be reproduced on another machine? | 12:45:27 | |
In reply to@charmonium:matrix.orgYour confusion is understandable, because this is, imho, a major design flaw in the flake registry. Unlike channels the online flake registry doesn't even require a user command to mutate, it simply does | 14:50:54 | |
On NixOS unstable, and the next NixOS release, this issue will be worked around to be much less confusing; flake:nixpkgs and <nixpkgs> will both point to the nixpkgs your system was built with: https://github.com/NixOS/nixpkgs/pull/254405 | 14:52:19 | |
| 23 Apr 2024 | ||
| 07:52:53 | ||
| 09:25:38 | ||
| 09:31:00 | ||
| 10:29:28 | ||
| 12:30:44 | ||
| 24 Apr 2024 | ||
| 14:29:06 | ||
| 08:59:02 | ||
| 25 Apr 2024 | ||
In reply to @qyriad:katesiria.org this is my favorite commentary on the mutable state hidden in the Nix registry:
| 03:26:52 | |
| 18:45:54 | ||
| 26 Apr 2024 | ||
| 03:16:41 | ||
| 05:19:24 | ||
| could someone explain why the expression at https://codeberg.org/shitpostalotl/bespoke/src/branch/main/pkgs/greenfield.nix#L7 evaluates to false? the situation is that a flake input representing greenfield's source repo is passed as an arg to the derivation as fsrc. as you can see, i'm trying to reference a file in the source repo by path. however, fsrc always evaluates to a nonexistant "nix" subdirectory in the source, while any functions which take it as an argument always return the store path of that flake instead of fsrc | 05:26:13 | |
| 05:26:22 | ||
| 05:36:12 | ||