Nix Flakes | 885 Members | |
| 179 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Sep 2023 | ||
| hey folks, I have the following default.nix file and flake.nix file in my root:
flake.nix
now when I load the flake in the repl I get this err message: | 18:02:38 | |
| that toolchain.pkgs seems to be a thunk, but can't tell really why. In a repl it works just fine (default.nix I mean) | 18:18:40 | |
| 2 Sep 2023 | ||
In reply to @lxsameer:matrix.orgprobably can't be a import | 01:41:08 | |
| Redacted or Malformed Event | 18:34:02 | |
| Probably use --impure on the command line | 18:36:43 | |
| thanks I figured it out | 18:38:00 | |
| 3 Sep 2023 | ||
| 08:58:30 | ||
| 13:11:08 | ||
hrm, so I use flake.parts with direnv-nix, and using watch_file **/flake-part.nix, it seems like a "small" reload is happening when I update something in a flake-part.nix file; but in order to get updated definitions of things (e.g. numtide/devshell commands) affecting the dev shell, I still have to manually direnv reload. | 15:23:43 | |
| the automatically triggered reload seems to do something, but it definitely doesn't make the updated commands available on the devshell I'm in | 15:24:15 | |
is the watch_file before or after the use flake line? | 15:55:38 | |
| I tried either - the reloads they trigger (and they do trigger something) both do not pick up changes to the script | 17:09:23 | |
| 19:04:36 | ||
Found it: nix_direnv_watch_file **/flake-part.nix does reload the whole dev shell if something changes, if it happens before use flake | 23:45:21 | |
| 4 Sep 2023 | ||
| 04:02:27 | ||
| 15:27:17 | ||
| 15:28:04 | ||
| 18:11:18 | ||
| 5 Sep 2023 | ||
| It seems like not only buildInputs but also it's dependencies are added to PATH, is this a known issue? | 16:24:45 | |
In reply to @mr-qubo:matrix.orgthey're added when strictDeps is false | 16:38:26 | |
In reply to @mr-qubo:matrix.org* they're added when strictDeps is false it's true on cross-compilation and in some package sets | 16:38:48 | |
| * they're added when strictDeps is false it's true on cross-compilation and in some package sets even when not cross | 16:38:56 | |
| * they're added when strictDeps is false it's true on cross-compilation and in some package sets even when not cross you can enable it when not cross if you want | 16:39:24 | |
In reply to @artturin:matrix.orgI see. The problem I have is that I use coreutils-full in systemPackages. But most of my flakes override this with coreutils because it's a common dependency and it's added to PATH before /run/current-system/sw/bin. | 17:02:42 | |
| Long PATH also makes zsh completion slow. | 17:04:45 | |
In reply to @artturin:matrix.orgI can't find how to enable it in flake. | 17:13:12 | |
In reply to @mr-qubo:matrix.orgit's a buildInputs and such is a mkDerivation thing | 17:15:36 | |
| not a flake thing | 17:15:39 | |
In reply to @mr-qubo:matrix.org* it's a mkDerivation thing | 17:15:48 | |
| the dependecy attributes ate mkDerivation things | 17:16:38 | |