Nix Flakes | 888 Members | |
| 178 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Aug 2021 | ||
In reply to @j-k:matrix.org j-k: Your own flake in the same directory? I mean this is when you're working on developing the code in a repository that contains the flake. If you import the flake as you suggested you run in to two problems:
| 18:23:11 | |
I was just going to say that's the pain of immutability but then I thought about racked but not staged yet files .... so nix flakes lets you run stuff on tracked but not staged yet files and just issues the line warning: Git tree '/home/jk/some/thing' is dirty, this is allowance is probably given as it'd be a PITA to stage every time you want to test a change. Maybe it could allow you to provide a file or dir as an extra dirty file or dir e.g --extra develop.nix and it could warn warning: Extra dirty content provided '/home/jk/some/thing/dirty/develop.nix' ? 🤷♂️ | 18:31:54 | |
* I was just going to say that's the pain of immutability but then I thought about tracked but not staged yet files .... so nix flakes lets you run stuff on tracked but not staged yet files and just issues the line warning: Git tree '/home/jk/some/thing' is dirty, this is allowance is probably given as it'd be a PITA to stage every time you want to test a change. Maybe it could allow you to provide a file or dir as an extra dirty file or dir e.g --extra develop.nix and it could warn warning: Extra dirty content provided '/home/jk/some/thing/dirty/develop.nix' ? 🤷♂️ | 18:32:07 | |
In reply to @j-k:matrix.orgj-k: Right I'm aware of that, but I think you are maybe missing my point. Your idea was to make a separate flake that IMPORTS the original flake, right? | 18:55:17 | |
In that case, you would still need to nix flake update every time any change is made for it to be reflected, since any imported flake is copied into the store when it is used as a dependency | 18:56:02 | |
| yes that was the idea I posted. you said you didnt like the workflow. I was going to give up but then thought about the dirty behaviour and proposed a potential new feature | 18:56:26 | |
| my 2nd idea has nothing to do with imports or the need to update the flake | 18:56:40 | |
| I see, the seond thing was unrelated | 18:57:13 | |
| Yes actualy reading it now, the second thing is basically exactly what i would want | 18:57:31 | |
| now that I think about it, it wouldnt solve the issue of adding new inputs but I guess it's a start | 19:29:39 | |
In reply to @j-k:matrix.orgWell it could if it was sort of also evaluated as a flake, except that i had direct access to the other flake | 21:13:40 | |
| 22:23:36 | ||
| 13 Aug 2021 | ||
| what do I do when I want to build an array of derivations? with https://github.com/06kellyjac/vim-git-overlay/blob/master/ci.nix i can do I can do | 10:14:43 | |
In reply to @j-k:matrix.orgYou should export it as a single derivation, e.g. with buildEnv | 11:40:59 | |
| thanks balsoft | 12:11:48 | |
| 12:43:56 | ||
| 23:01:35 | ||
| 15 Aug 2021 | ||
| 03:21:23 | ||
| 09:49:13 | ||
| 09:50:36 | ||
| 10:07:04 | ||
| 10:07:18 | ||
| 17:36:02 | ||
| 17 Aug 2021 | ||
| 05:57:07 | ||
| 19:59:04 | ||
| 18 Aug 2021 | ||
| 18:46:15 | ||
| 19 Aug 2021 | ||
| 05:55:12 | ||
| 20 Aug 2021 | ||
| 01:13:04 | ||
| 21 Aug 2021 | ||
| 01:51:10 | ||
| 22 Aug 2021 | ||
| 15:49:00 | ||