!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

888 Members
178 Servers

Load older messages


SenderMessageTime
13 Oct 2021
@lvkm:matrix.orglvkm you mean, nix build will update all dependencies instead of just adding the new ones? 08:02:02
@balsoft:balsoft.rubalsoft
In reply to @colemickens:matrix.org
well, Cargo does what I suggested per-dep as I understand, so at least users only get changes they'd expect.
I think that's what'
08:02:26
@balsoft:balsoft.rubalsoft* I think that's what's intended to happen with Nix08:02:31
@lvkm:matrix.orglvkm(i'm not sure if i understand #5112)08:02:35
@balsoft:balsoft.rubalsoftIf it doesn't that's probably a bug08:02:37
@colemickens:matrix.orgcolemickens 🏳️‍🌈well, the behavior I just got from TIAS matched what y'all are saying.08:03:57
@colemickens:matrix.orgcolemickens 🏳️‍🌈so... I feel a bit silly, gonna review my own comments here are bit more closely to see what had been unexpected08:04:26
@colemickens:matrix.orgcolemickens 🏳️‍🌈well, anyway, that would seem to be the flavor of foot in my mouth, guess I should've reviewed more closely.08:08:10
@colemickens:matrix.orgcolemickens 🏳️‍🌈I almost feel like the comments from today deserve to be broken out into their own issues as they strike me as potentially more as explicit potential bugs08:08:42
@colemickens:matrix.orgcolemickens 🏳️‍🌈 cc: David Arnold (blaggacao) ^ re your and nrdxp's comments on 5112 08:09:49
@colemickens:matrix.orgcolemickens 🏳️‍🌈 * cc: David Arnold (blaggacao) ^ re your and nrdxp's comments on 5112 - consider splitting them into a new one - I'm not even sure I agree with my original UX complaint there and yours strikes as a potential bug. 08:10:15
@blaggacao:matrix.orgDavid Arnold (blaggacao) colemickens 🏳️‍🌈 agreed. For the flake.lock updating, I would say: the source of truth is flake.nix (the one you're looking at). So if the specification of a package is vague (e.g. pointing to a branch), well then at any given time e.g. "master" means "master" at that given time. 11:25:07
@blaggacao:matrix.orgDavid Arnold (blaggacao)

If any command does an unexpected update, this is a very exquisite reminder that the spec is flawed.

This behaviour will be very edicative to the ones writing the specs (flake.nix) as their users complain about broken things.

11:26:38
@blaggacao:matrix.orgDavid Arnold (blaggacao)* If any command does an unexpected update, this is a very exquisite reminder that the spec is flawed. This behaviour will be very educative to the ones writing the specs (flake.nix) as their users complain about broken things.11:27:09
@tyberius_prime:matrix.orgTyberiusPrimeCan I run an arbitrary github flake as a one liner?12:18:52
@lourkeur:nixos.devlourkeur (nix btw)
In reply to @tyberius_prime:matrix.org
Can I run an arbitrary github flake as a one liner?
generally speaking yes
12:19:23
@tyberius_prime:matrix.orgTyberiusPrimeturns out it's as simple as 'nix shell github:/TyberiusPrime/anysnake2?rev=eef5fbe89f685981b7ebf63f695c6c7f42d00892'...12:25:00
@tyberius_prime:matrix.orgTyberiusPrime(which of course fails to compile because I'm trying to stamp the git version into that, and nix doesn't clone the repo, but downloads a tarball :))12:25:20
@balsoft:balsoft.rubalsoft
In reply to @tyberius_prime:matrix.org
turns out it's as simple as 'nix shell github:/TyberiusPrime/anysnake2?rev=eef5fbe89f685981b7ebf63f695c6c7f42d00892'...
You can omit the rev
12:25:21
@balsoft:balsoft.rubalsoft Or do it like github:TyberiusPrime/anysnake2/eef5fbe 12:26:00
@tyberius_prime:matrix.orgTyberiusPrimeI need the rev.12:26:08
@balsoft:balsoft.rubalsoftYeah but you only need the first few chars12:26:18
@tyberius_prime:matrix.orgTyberiusPrimethis will be 'read config. If config says to use a different version, respawn as nix shell <correct version here>'12:26:24
@balsoft:balsoft.rubalsoftAnd you can pass revs and branches as the last part of the URI12:26:29
@balsoft:balsoft.rubalsoft(unless the branch name contains slashes or other weird stuff, then you need to use URI query syntax and uriencode it)12:27:01
@tyberius_prime:matrix.orgTyberiusPrime
In reply to @balsoft:balsoft.ru
Yeah but you only need the first few chars
that way lies madness. I don't even want to know what happens on an eventual collision)
12:27:15
@tyberius_prime:matrix.orgTyberiusPrimehm "nix shell "git+https://github.com/TyberiusPrime/anysnake2?rev=eef5fbe89f685981b7ebf63f695c6c7f42d00892" fetching Git repository 'https://github.com/TyberiusPrime/anysnake2'fatal: couldn't find remote ref refs/heads/master"12:30:52
@tyberius_prime:matrix.orgTyberiusPrimeis it telling me that it can't handle the default branch being called 'main'12:31:04
@tyberius_prime:matrix.orgTyberiusPrime?12:31:05
@balsoft:balsoft.rubalsoftIt can12:31:12

Show newer messages


Back to Room ListRoom Version: 6