!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

886 Members
177 Servers

Load older messages


SenderMessageTime
9 Nov 2021
@roosemberth:orbstheorem.chRoos left the room.18:51:31
@andi:kack.itandi-How would that handle building only a subflake? (think partial checkout)23:49:32
10 Nov 2021
@rickynils:nixos.devRickard Nilsson joined the room.11:22:12
@figsoda:matrix.orgfigsoda
In reply to @andi:kack.it
How would that handle building only a subflake? (think partial checkout)
Is ?dir= what you want?
13:50:09
@andi:kack.itandi-No I mean the situation that subflakes wont have a lockfile13:50:24
11 Nov 2021
@turbounicorn:matrix.orgGogu de la Gazé joined the room.12:20:48
@cafkafk:matrix.orgcafkafk set a profile picture.18:05:38
12 Nov 2021
@mjolnir:nixos.orgNixOS Moderation Bot unbanned @matthewcroughan:defenestrate.itmatthewcroughan - nix.zone.00:23:30
14 Nov 2021
@betaboon:0x80.ninjabetaboon joined the room.11:19:13
15 Nov 2021
@roberthensing:matrix.orgRobert Hensing (roberth) andi-: does it even support partial checkouts? I don't think we have to worry about it yet. Partial checkouts can be supported by adding checkout parameters to the top-level of the flake (next to inputs, outputs, description) where the checkout parameters can be read during locking, cached in the lock file and used when fetching. 10:23:33
@andi:kack.itandi-I don't think it support any like that right now. I am mostly concerned about the situation where the flake isn't at the root of the repository and everything it should care about is living besides it (and not in the parent/sibling directories).10:24:27
@roberthensing:matrix.orgRobert Hensing (roberth)so I think we don't need to be worried about it, because they're implementation concerns, not implementability concerns10:28:13
@andi:kack.itandi-Well of course it can be implemented but it also has to be considered. That is why I am raising it (again and again). I'd love to move some of my monorepos to flakes eventually but adding 20GiB of binary assets to the store isn't a great selling point :-)10:43:25
17 Nov 2021
@skamdart:matrix.orgSkamDart joined the room.00:05:01
18 Nov 2021
@scotttrinh:matrix.orgscotttrinh joined the room.14:53:32
@scotttrinh:matrix.orgscotttrinh left the room.14:53:57
@scotttrinh:matrix.orgscotttrinh joined the room.14:54:11
@scotttrinh:matrix.orgscotttrinh set their display name to scotttrinh.19:00:16
@scotttrinh:matrix.orgscotttrinh set a profile picture.19:00:18
@austinp17:matrix.orgaustinp17 joined the room.21:06:00
19 Nov 2021
@skamdart:matrix.orgSkamDartIs it possible to build all outputs of a flake from nix build?01:41:11
@tomberek:matrix.orgtomberek

SkamDart: it's not pretty, but....

nix flake show --json | jq '[leaf_paths as $path | select(getpath($path) == "derivation") | {"key": $path | join(".") | sub(".type";""), "value": getpath($path)}] | from_entries | keys|.[]' -cr | xargs -I{} nix build .#{}
02:26:50
@ilkecan:matrix.orgilkecan
In reply to @skamdart:matrix.org
Is it possible to build all outputs of a flake from nix build?
If you can modify the flake, you can add the outputs you would like to be built under checks output and then run nix flake check. Note that some outputs might not supposed to be built.
09:33:07
@lovesegfault:matrix.orglovesegfaultHow can I get my flake to work in a repo that contains submodules?20:38:28
@lovesegfault:matrix.orglovesegfault Like, I have a top-level flake and a submoduel foo/bar/ but when I build the submodule is not there 20:38:50
@lovesegfault:matrix.orglovesegfault(inside the build sandbox, that is)20:38:55
@skamdart:matrix.orgSkamDartRad. Thanks folks!21:07:04
20 Nov 2021
@artemist:artem.istartemist 🏳️‍⚧️ joined the room.02:15:32
@artemist:artem.istartemist 🏳️‍⚧️ I have a repo with a few modules in it. Can I just do nixosModules.foo = ./foo.nix or do I need to wrap that in something? 02:55:22
@ilkecan:matrix.orgilkecan
In reply to @artemist:artem.ist
I have a repo with a few modules in it. Can I just do nixosModules.foo = ./foo.nix or do I need to wrap that in something?
That should work.
09:14:51

Show newer messages


Back to Room ListRoom Version: 6