!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

879 Members
175 Servers

Load older messages


SenderMessageTime
5 Oct 2021
@edrex:matrix.orgedrexoh the fix i'm trying to get is actually a patch to stdenv18:55:37
@edrex:matrix.orgedrexinstalling a different stdenv seems like it would require rebuilding the world. hmm18:56:37
@edrex:matrix.orgedrexhttps://github.com/NixOS/nixpkgs/pull/138334/files18:56:58
@artturin:matrix.orgArtturin joined the room.18:59:02
6 Oct 2021
@colemickens:matrix.orgcolemickens 🏳️‍🌈well, I called it with the registry05:17:30
@colemickens:matrix.orgcolemickens 🏳️‍🌈but I guess I'm not enterprise enough, some people seem really into it05:18:05
@balsoft:balsoft.rubalsoft
In reply to @colemickens:matrix.org
but I guess I'm not enterprise enough, some people seem really into it
I feel called out :D
05:18:21
@balsoft:balsoft.rubalsoftI feel it's really convinient for managing a lot of repositories with overlapping dependencies, though05:19:01
@colemickens:matrix.orgcolemickens 🏳️‍🌈I don't understand what you can do with it that you can't do with "..follows" other than specifically introduce machine or other-place indirection. Or why that property is helpful other than confusion the confusion shown earlier.06:51:00
@cdepillabout:matrix.orgcdepillabout

When I run nix develop in my repo with a flake.nix, I get some sort of warning message related to git:

$ nix develop
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint:   git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint:   git branch -m <name>

Any idea why I would be getting this message when running nix develop?

Strangely enough, if I immediately exit out of the shell and run nix develop again, I don't get the message again.

I guess it is possible that this is caused by calling git in my shell's PROMPT_COMMAND, but it doesn't seem likely since i don't see this message when changing directories.

07:31:51
@Las:matrix.orgLas cdepillabout: This is an error internal to Nix. 07:42:10
@Las:matrix.orgLas Nix uses git internally when fetching Git repositories. 07:42:18
@Las:matrix.orgLas * cdepillabout: This is a warning internal to Nix. 07:42:55
@niksnut:matrix.orgniksnutI think this message is gone on master, see https://github.com/NixOS/nix/pull/457307:52:19
@rosariopulella:matrix.orgRosario Pulella changed their display name from rosariopulella to Rosuavio.10:38:26
@rosariopulella:matrix.orgRosario Pulella changed their display name from Rosuavio to Rosario Pulella.10:44:51
@cdepillabout:matrix.orgcdepillabout
In reply to @niksnut:matrix.org
I think this message is gone on master, see https://github.com/NixOS/nix/pull/4573
Ah great, thanks!
11:07:55
@lourkeur:nixos.devLouis Bettens joined the room.20:34:49
7 Oct 2021
@kadokusei10:matrix.orgkadokusei10 joined the room.09:41:19
8 Oct 2021
@florian:web3.foundationFlorian | W3Fnix now fetches submodules by default for flakes and I was wondering what would be the best way to expose all submodules for isolated use in the flake? My use case would be that in some cases, I just want my flake output on submodules, so I do not end up rebuilding them for all repo changes. 09:01:50
@florian:web3.foundationFlorian | W3F * nix now fetches submodules by default for flakes and I was wondering what would be the best way to expose all submodules for isolated use in the flake? My use case would be that in some cases, I just want my flake ouput only depends on some submodules, but I do end up rebuilding for all repo changes.09:07:46
@Las:matrix.orgLas Florian | W3F - OoO Mon/Tue: Pretty sure that was reverted due to various issues. 11:09:40
@nerdypepper:matrix.orgAkshay joined the room.13:50:55
@florian:web3.foundationFlorian | W3F changed their display name from Florian | W3F - OoO Mon/Tue to Florian | W3F.15:14:01
10 Oct 2021
@colemickens:matrix.orgcolemickens 🏳️‍🌈I want to have packages in my flake.nix, and make them easily available as an overlay without repeating myself. The easiest way to do that is to expose the overlay and then a function that returns and overlaid nixpkgs, and then returning your packages from that set02:23:47
@colemickens:matrix.orgcolemickens 🏳️‍🌈but how do you know the names of the packages to return in the packages attribute without duplicating? I guess I could instansiate the overlay with fake nixpkgs and then see what attrNames02:24:34
@colemickens:matrix.orgcolemickens 🏳️‍🌈 * but how do you know the names of the packages to return in the packages attribute without duplicating? I guess I could instansiate the overlay with fake nixpkgs and then see what the attrNames and filter on those. sounds tedious.02:24:45
@mvtva:matrix.orgmvnetbizYou you just call the overlay function with fake parameters and then use attrNames on that? It won't need to evaluate the attr values so it won't error right?04:55:43
@mvtva:matrix.orgmvnetbiz Like attrNames (myOverlay null null). Not sure if that would work. Also it would be more complicated if you have package sets 04:57:03
@mvtva:matrix.orgmvnetbiz* Maybe you can call the overlay function with fake parameters and then use attrNames on that? It won't need to evaluate the attr values so it won't error right?04:59:35

Show newer messages


Back to Room ListRoom Version: 6