| 19 Jul 2021 |
matthewcroughan - 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 - nix.zone | how is an input fetched? | 11:31:55 |
matthewcroughan - nix.zone | I want to do src = self; but fetch lfs. | 11:35:19 |
matthewcroughan - nix.zone | This seems impossible, to me. | 11:35:27 |
matthewcroughan - nix.zone | Am I expected to instead fetch lfs outside of nix, an impurity? | 11:35:47 |
bryan | I guess I wouldn't be surprised if it's just a missing feature | 12:03:01 |
matthewcroughan - nix.zone | Yeah I think it is | 12:05:45 |
matthewcroughan - nix.zone | fetchgit can fetch lfs. But you cannot get lfs as part of self in any flake. | 12:06:02 |
matthewcroughan - nix.zone | and you can of course not pass self into fetchgit. | 12:06:14 |
matthewcroughan - nix.zone | unless you want fun | 12:06:32 |
matthewcroughan - nix.zone | Like
src = final.pkgs.fetchgit {
url = builtins.unsafeDiscardStringContext "file://${self}.git";
};
Which doesn't even work.
| 12:06:58 |
matthewcroughan - nix.zone | * Like
src = final.pkgs.fetchgit {
url = builtins.unsafeDiscardStringContext "file://${self}";
};
Which doesn't even work.
| 12:07:09 |
| j-k joined the room. | 15:01:48 |
matthewcroughan - 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 - 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 | can a flake have inputs of arbitrary types? | 01:27:51 |
polykernel | * can a flake have inputs of an arbitrary type? | 01:28:03 |
| Andrea Pascal joined the room. | 03:37:43 |
David 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 | 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 |
David 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 | 12:48:39 |
David 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 |
David 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 |
David 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 (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 |
David Arnold (blaggacao) | You might use divnix/digga.overlays.patchedNix for convenience. | 12:56:12 |
David Arnold (blaggacao) | https://www.github.com/divnix/digga/tree/develop/overlays%2Fnix-patched.nix | 12:56:33 |
David Arnold (blaggacao) | * vika (she/her) 🏳️⚧️ might use `divnix/digga.overlays.patchedNix` for convenience. | 12:56:43 |
David Arnold (blaggacao) | * vika (she/her) 🏳️⚧️ you might use `divnix/digga.overlays.patchedNix` for convenience. | 12:56:54 |
vika (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 |