!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

882 Members
180 Servers

Load older messages


SenderMessageTime
19 Jul 2021
@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
@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
@polykernel:kde.orgpolykernel * can a flake have inputs of an arbitrary type?01:28:03
@anodium:matrix.orgAndrea Pascal joined the room.03:37:43
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @vika:matrix.nice.sampler.fi
"follows" always uses the root flake for dependency resolution, not the parent flake
I guess this PR has all the relevant details / fixes https://github.com/NixOS/nix/pull/4641
12:46:35
@balsoft:balsoft.rubalsoft
In reply to @polykernel:kde.org
can a flake have inputs of an arbitrary type?
What do you mean by "type" of an input?
12:47:31
@blaggacao:matrix.orgDavid Arnold (blaggacao)* I guess this PR has all the relevant details / fixes https://github.com/NixOS/nix/pull/4641 somteims one can work around that bug with something like https://www.github.com/divnix/devos/tree/develop/flake.nix#L4912:48:39
@blaggacao:matrix.orgDavid Arnold (blaggacao)* I guess this PR has all the relevant details / fixes https://github.com/NixOS/nix/pull/4641 somteims one can work around that bug with something like https://www.github.com/divnix/devos/tree/develop/flake.nix#L49. But this work around stops working if things are too nested.12:50:13
@blaggacao:matrix.orgDavid Arnold (blaggacao)* I guess this PR has all the relevant details / fixes https://github.com/NixOS/nix/pull/4641 somteims one can work around that bug with something like https://www.github.com/divnix/devos/tree/develop/flake.nix#L49. But this work around stops working if things are too nested. We usually use the patched nix version in a devshell to update the lock file. The correctly generated lockfile is then also compatible with a non-patched nix version.12:51:19
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @vika:matrix.nice.sampler.fi
This property of "follows" surely could be exploited in some way to do interesting things...
I regard it as a (better) substitute for overlays, as long as overlays is used to instantiate stuff on the same pkgs version.
12:53:25
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️
In reply to @blaggacao:matrix.org
I guess this PR has all the relevant details / fixes https://github.com/NixOS/nix/pull/4641 somteims one can work around that bug with something like https://www.github.com/divnix/devos/tree/develop/flake.nix#L49. But this work around stops working if things are too nested. We usually use the patched nix version in a devshell to update the lock file. The correctly generated lockfile is then also compatible with a non-patched nix version.
Maybe I should apply this patch to my Nix
12:54:36
@blaggacao:matrix.orgDavid Arnold (blaggacao) You might use divnix/digga.overlays.patchedNix for convenience. 12:56:12
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://www.github.com/divnix/digga/tree/develop/overlays%2Fnix-patched.nix12:56:33
@blaggacao:matrix.orgDavid Arnold (blaggacao)* vika (she/her) 🏳️‍⚧️ might use `divnix/digga.overlays.patchedNix` for convenience.12:56:43
@blaggacao:matrix.orgDavid Arnold (blaggacao)* vika (she/her) 🏳️‍⚧️ you might use `divnix/digga.overlays.patchedNix` for convenience.12:56:54
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️
In reply to @blaggacao:matrix.org
vika (she/her) 🏳️‍⚧️ you might use divnix/digga.overlays.patchedNix for convenience.

Cool! Thank you.

I wonder what this __dontExport thing does...

12:58:17

Show newer messages


Back to Room ListRoom Version: 6