!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

858 Members
177 Servers

Load older messages


SenderMessageTime
19 Jul 2021
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️Oh. Ok. I'll try.04:18:35
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️OH WAIT I GOT IT04:19:37
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️"follows" always uses the root flake for dependency resolution, not the parent flake04:19:55
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️That's... Interesting, to say the least04:20:08
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️
In reply to @buckley310:matrix.org
tldr, add this to you rinputs flake-utils.url = "github:numtide/flake-utils"; and then add , ... to your output function.
Thank you very much
04:23:38
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️It does work now04:23:45
@buckley310:matrix.orgBuckleyim not completely sure its supposed to work that way, but yeah.04:24:30
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️ This property of "follows" surely could be exploited in some way to do interesting things... 04:24:08
@buckley310:matrix.orgBuckleyi think follows is a rough-edge that has to be ironed out before flakes go stable.04:24:59
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️Well, that's why flakes are experimental :304:25:11
@buckley310:matrix.orgBuckleylol04:25:39
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️Oh yeah, we're building stuff now04:25:29
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneHmm, there is no way to do LFS with your inputs is there?10:09:24
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneDoes anybody have a strategy for dealing with that?10:09:29
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone I need git lfs, but I want to use self. 10:09:36
@b:chreekat.netbryanLarge file storage? 10:24:34
@b:chreekat.netbryan Oh I guess it's the same topic as here: https://discourse.nixos.org/t/how-to-fetch-lfs-enabled-repo-with-fetchfromgithub/5890/10 10:27:25
@b:chreekat.netbryanI mean, that's not about flakes, but about lfs10:27:35
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
In reply to @b:chreekat.net
I mean, that's not about flakes, but about lfs
yes, there is no way to do this with flakes
11:31:42
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonehow is an input fetched?11:31:55
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone I want to do src = self; but fetch lfs. 11:35:19
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneThis seems impossible, to me.11:35:27
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneAm I expected to instead fetch lfs outside of nix, an impurity?11:35:47
@b:chreekat.netbryanI guess I wouldn't be surprised if it's just a missing feature12:03:01
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneYeah I think it is12:05:45
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone fetchgit can fetch lfs. But you cannot get lfs as part of self in any flake. 12:06:02
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone and you can of course not pass self into fetchgit. 12:06:14
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneunless you want fun 12:06:32
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone

Like

          src = final.pkgs.fetchgit {
            url = builtins.unsafeDiscardStringContext "file://${self}.git";
          };

Which doesn't even work.

12:06:58
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone *

Like

          src = final.pkgs.fetchgit {
            url = builtins.unsafeDiscardStringContext "file://${self}";
          };

Which doesn't even work.

12:07:09

Show newer messages


Back to Room ListRoom Version: 6