!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

885 Members
179 Servers

Load older messages


SenderMessageTime
23 Jun 2023
@emilazy:matrix.orgemily i need to sleep, hopefully when i wake up i'll have shaken this dread curse that makes me think trying to reimplement nix's flake.nix parsing logic to poke at an unknown inputs.self is a good idea 12:05:01
@twitchy0:matrix.orgtwitchy0
In reply to @emilazy:matrix.org
you shouldn't give me ideas like this, this is dangerous
I think it's acceptable. Self is considered a flake input, and nix will put your working code in the nix store so you do still have purity in inputs.
I can maybe see danger with instability, but it seems like fair game to me to use the flake.lock
12:06:01
@twitchy0:matrix.orgtwitchy0I should say "flake is considered a flake input" only from understanding, dunno about officially12:07:29
@emilazy:matrix.orgemily yeah, in this case self would be some unknown third party's flake though 12:07:43
@twitchy0:matrix.orgtwitchy0You certainly don't declare it at such, so it's implicit12:07:49
@emilazy:matrix.orgemily and there's no guarantee there's a lock, only flake.nix 12:07:51
@emilazy:matrix.orgemilyso it would be "interesting".12:07:54
@twitchy0:matrix.orgtwitchy0Ah12:07:57
@emilazy:matrix.orgemilynot impossible, but kind of gross.12:08:04
@crtified:crtified.meCRTifiedYou're writing a kind of meta-flake then? 😄12:08:27
@emilazy:matrix.orgemilyit's in the context of nixos's manual generator which currently has a weird way of mapping option definition locations to source URLs12:09:08
@emilazy:matrix.orgemilywas trying to come up with something better and wondering how much could be automated from flake inputs12:09:22
@bl1nk:matrix.orgbl1nk changed their profile picture.21:49:21
25 Jun 2023
@arianvp:matrix.org@arianvp:matrix.org What is the rationale for hydraJobs being <package>.<system> as opposed to<system>.<package> ? 08:49:16
@sandro:supersandro.deSandro 🐧Probably because the supported platforms are depending on the package08:59:48
@ncfavier:matrix.orgnfsupported packages also depend on the platform ;)13:27:51
@realbeing2453tyhr:matrix.org@realbeing2453tyhr:matrix.org joined the room.20:12:31
@emilazy:matrix.orgemilymy guess: because it's how hydra jobs have always been named on the site in the pre-flakes era?21:49:09
@emilazy:matrix.orgemilyplays nicer with sorting, i guess21:49:27
@realbeing2453tyhr:matrix.org@realbeing2453tyhr:matrix.org changed their display name from realbeing2453tyhr to 2453tyhr.23:08:22
@realbeing2453tyhr:matrix.org@realbeing2453tyhr:matrix.org set a profile picture.23:10:54
26 Jun 2023
@beect:matrix.orgbeect joined the room.03:58:44
@jhu:pikaviestin.fiJhuSo, if I use Flakes for anything more complex with 3rd party flake dependencies, it seems that the dependencies get totally out of hand. What is the correct way of managing the chain of recursive sub-dependencies of flakes so that I would not end up with 10 different hard locked revisions of nixpkgs to use the top level Flake? Or is the only way to crawl through all those dependent flakes and do manual overrides? Surely there has to be a better way?08:37:04
@emilazy:matrix.orgemily nix flake metadata can help you track them down 08:45:31
@emilazy:matrix.orgemilybut that's pretty much how it goes. flakes will often make their inputs follow their own nixpkgs, so you can just override the top-level nixpkgs to get most of them08:45:46
@emilazy:matrix.orgemilyalso, it's not necessarily that much of a problem to have different nixpkgs versions if you are consuming flakes through an overlay or nixos module, since in that case they will use your "main" nixpkgs anyway08:46:15
@crtified:crtified.meCRTified
In reply to @emilazy:matrix.org
also, it's not necessarily that much of a problem to have different nixpkgs versions if you are consuming flakes through an overlay or nixos module, since in that case they will use your "main" nixpkgs anyway
That might be important to be stressed a bit more. You made me just aware of that, and the consequence (for me) would be that providing overlays is better than providing packages, at least if there is no CI updating the flake.lock
09:06:07
@emilazy:matrix.orgemilyon the other hand, providing packages is important too, for CLI usability :/09:06:41
@emilazy:matrix.orgemily and when packages.* are based on overlays it results in more nixpkgs imports for people like me who try to keep to 0 overlays... so really you have to provide both. it's an awkward situation 09:07:07
@crtified:crtified.meCRTified Yeah. I'd probably go with "put the mkDerivation call In a let binding, reuse that in an overlay and package" 09:07:30

Show newer messages


Back to Room ListRoom Version: 6