!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

905 Members
185 Servers

Load older messages


SenderMessageTime
15 Sep 2021
@paultrial:banditlair.compaultrial left the room.19:27:19
@paultrial:banditlair.compaultrial joined the room.19:27:45
17 Sep 2021
@cleverca22:matrix.orgcleverca22 joined the room.06:03:50
@geowy:matrix.orgGeorge Wyatt joined the room.11:28:45
@j0xaf:matrix.orgj0xaf joined the room.20:21:19
21 Sep 2021
@ilkecan:matrix.orgilkecan It isn't possible to specify the name of self directory of a flake, right? It is always named <hash>-source to prevent this impurity. Is that correct? 18:06:47
@balsoft:balsoft.rubalsoftYes, I think it's hardcoded18:11:50
@ilkecan:matrix.orgilkecan Does anyone know why Nix doesn't allow filtering (using builtins.filterSource or builtins.path) strings with context? The implication of this is that it is not possible to filter Nix inputs. 23:05:31
@ilkecan:matrix.orgilkecan * Does anyone know why Nix doesn't allow filtering (using builtins.filterSource or builtins.path) strings with context? The implication of this is that it is not possible to filter Flake inputs. 23:06:18
@tomberek:matrix.orgtomberek ilkecan: working on it..... https://github.com/NixOS/nix/pull/5163 23:46:54
@ilkecan:matrix.orgilkecan
In reply to @tomberek:matrix.org
ilkecan: working on it..... https://github.com/NixOS/nix/pull/5163
Actually I was writing a comment under your PR saying there are (at least) 3 different issues regarding filterSource on the wild. Your PR seem to be about fixing access to path '<path>' is forbidden in restricted mode while the one caused by filtering strings with context result in string '<string>' cannot refer to other paths. Does your PR fixes both of these?
23:52:14
@tomberek:matrix.orgtombereknot sure... can you provide a minimal example to help distinguish the issues?23:53:08
@ilkecan:matrix.orgilkecanAlso somewhat off topic but how can I test your PR?23:53:21
@tomberek:matrix.orgtomberekLook at Mazuel's repo23:54:03
@tomberek:matrix.orgtomberek * Look at Mazurel's repo23:54:17
@ilkecan:matrix.orgilkecan What I meant was how can I replace nix (currently nixUnstable) with the one built from your PR? 23:54:52
@ilkecan:matrix.orgilkecan * What I meant was how can I replace nix (currently nixUnstable) with the one built from your branch? 23:55:06
@ilkecan:matrix.orgilkecan I guess nix run 'github:tomberek/nix/flakes_filterSource' would work 23:58:43
22 Sep 2021
@ilkecan:matrix.orgilkecan tomberek: I tested your branch and it doesn't look like it changes how strings with contexts are handled inside builtins.path or builtins.filterSource. I also wrote this. If needed I can create minimal working examples later but I need to log out now. 00:40:22
@colemickens:matrix.orgcolemickens 🏳️‍🌈what's the most ergonomic way to have a nix run that maps to a script?06:52:03
@colemickens:matrix.orgcolemickens 🏳️‍🌈should I just point it at bash, and then, supply it args? idk06:52:18
@edrex:matrix.orgedrex i'm trying to install nixGL with nixUnstable. There's a big issue thread discussing what to do about flakes there. Am I missing something in thinking a short term solution is just introducing an impure flake and instructing users to pass --impure to nix profile install? https://github.com/guibou/nixGL/issues/16#issuecomment-925300321 20:23:19
@edrex:matrix.orgedrexalso, as a user on nixUnstable am I on a strictly no-Channels diet? this is my understanding and I haven't had any thought for them till this moment.20:25:23
@tomberek:matrix.orgtomberek Flakes steer you toward not using channels in the way they were used in legacy Nix. Do you use <nixpkgs> or NIX_PATH? The issues those things bring up are one of the main motivations behind flakes. 20:30:36
@edrex:matrix.orgedrex <nixpkgs> as in a global input for expressions? So far my only expressions are under a NixOS system flake, and I'm just using nix as a stateful package manager on other hosts, with nix profile ... So I guess no? I see that NIX_PATH is a way to override the behavior of the nix tool. I'm not doing that AFAIK. 20:36:20
@edrex:matrix.orgedrexas a new user trying to do things purely with flakes, i'm in an awkward position with the documentation20:38:18
@edrex:matrix.orgedrexon one hand, legacy docs like nix pills are foundational20:38:35
@edrex:matrix.orgedrexon the other, they are, in practical terms, largely irrelevant with nixFlakes20:39:37
@edrex:matrix.orgedrexso I have skimmed them but I miss a lot of foundation that way/20:40:01
@balsoft:balsoft.rubalsoft
In reply to @edrex:matrix.org
i'm trying to install nixGL with nixUnstable. There's a big issue thread discussing what to do about flakes there. Am I missing something in thinking a short term solution is just introducing an impure flake and instructing users to pass --impure to nix profile install? https://github.com/guibou/nixGL/issues/16#issuecomment-925300321
Could you tl;dr on what the problem is?
20:40:07

Show newer messages


Back to Room ListRoom Version: 6