Nix Flakes | 887 Members | |
| 179 Servers |
| Sender | Message | Time |
|---|---|---|
| 30 May 2023 | ||
| 15:29:00 | ||
have you tried nix flake update? | 15:30:10 | |
Quick question: how do I get the timestamp of the revision in a nix flake? I know the revision is self.rev, is there something like self.lastModified? And more importantly, where is that documented? | 15:31:29 | |
| https://github.com/NixOS/nix/blob/master/src/nix/flake.md#flake-reference-attributes | 15:36:30 | |
| thanks a lot | 15:37:04 | |
| didiercrunch: no, I ran the command from outside the repo (I don't have it on my machine, I want to pull it into another flake as a dependency). the flake had not kept up with the rest of the project upstream, but they are addressing it (https://github.com/pola-rs/r-polars/issues/226) | 22:49:44 | |
| 1 Jun 2023 | ||
| 13:03:24 | ||
| 2 Jun 2023 | ||
is using file+https inputs for "evergreen" URLs that change over time not a supported use case? when doing nix flake archive or even just rebuilding my system it seems to always re-request even if they were already downloaded into the store and thus regularly run into "error: NAR hash mismatch in input ..." errors. I guess there's no way to reproducibly download the locked version on another system but it's surprising to me that it doesn't work even when you have it cached already. The example in the manual for the similar tarball input type is https://github.com/NixOS/patchelf/archive/master.tar.gz which would seem to have the same issue... | 19:54:24 | |
| You can use archive.org for a stable url | 20:10:47 | |
| If you want a stable GitHub tarball URL, you will need to use a commit or tags | 20:31:01 | |
| * If you want a stable GitHub tarball URL, you will need to use a commit or tag in the url | 20:31:11 | |
| ah, it's not a github tarball URL, that's just me giving an example of a URL the manual suggests as an example of an input but that seems like it would run into the same problems I'm getting here | 20:53:54 | |
I don't mind having to update to be able to reproduce a lock on another machine, it's just confusing to me that it seems like you're forced to update as soon as the URL changes on your own machine, even if you haven't run nix flake update and the URL is cached in the store locally | 20:54:31 | |
| 3 Jun 2023 | ||
| emily: I think it should work as you describe it. The lockfile has the expected nar hash, and it shouldn't try re-fetching it if it's already in the store | 12:27:41 | |
| (the contrary would be utterly inefficient any way) | 12:27:58 | |
| yeah, it doesn't make much sense to me either - it seemed like maybe it was doing a HEAD request and then a full GET based on the last-modified/expires headers? I'll try and come up with a minimal reproduction though | 20:12:16 | |
| Okay, here's a way to reproduce:
Do
| 22:16:40 | |
Maybe this is a nix flake archive-specific bug? Not sure, would have to play around more to narrow it down further than this | 22:17:25 | |
after you do that nix build .#test again will adjust the lock. it seems like nix flake archive shouldn't redownload everything if it's already cached locally and there was no lock update | 22:18:19 | |
| 4 Jun 2023 | ||
| what is currently the most comprehensive document of the current design of flakes? | 13:08:34 | |
| (assuming the original RFC is not perfectly accurate anymore) | 13:09:13 | |
| 17:40:32 | ||
| 21:22:04 | ||
| 5 Jun 2023 | ||
| hahaha there is none afaik | 17:22:29 | |
| the RFC is your best bet | 17:22:43 | |
| i'd like to add a neovim plugin for use in a devShell for a specific project. below is my current flake. i'm using flake-parts, and the general sentiment is that flakes should not be relying on overlays. i've read on a discourse thread that i should "build on top on nixpkgs" instead. i have no idea what that phrase means, or what it would look like. any tips?
| 18:29:37 | |
| btw i have an already existing neovim configuration i use system-wide, so i'd like to not get rid of that. i've tried an override and got just that 😭 | 18:31:03 | |
| * btw i have an already existing neovim configuration i use system-wide, so i'd like to not get rid of that. i've tried an override and ended up with just that 😭 | 18:33:25 | |
| 21:41:56 | ||
| 6 Jun 2023 | ||
| 01:34:06 | ||