!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

858 Members
177 Servers

Load older messages


SenderMessageTime
19 Jul 2021
@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.netchreekatLarge file storage? 10:24:34
@b:chreekat.netchreekat 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.netchreekatI 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.netchreekatI 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
@j-k:matrix.orgj-k joined the room.15:01:48
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone nix-build and nix build seem to produce different results. nix build vs nix-build with getFlake behave differently, the outPath for former doesn't contain .git, but the latter does. 22:32:11
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * nix-build and nix build seem to produce different results. nix build vs nix-build with getFlake behave differently, the outPath for former doesn't contain .git, but the latter does. 22:56:25
20 Jul 2021
@polykernel:kde.orgpolykernelcan a flake have inputs of arbitrary types?01:27:51

Show newer messages


Back to Room ListRoom Version: 6