!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

885 Members
176 Servers

Load older messages


SenderMessageTime
16 Oct 2021
@deeunderscore:feneas.orgDee(I kid)23:09:57
17 Oct 2021
@tomberek:matrix.orgtomberek I’ve been thinking of adding a “—command” to ‘nix run’ for exactly this reason. 03:10:41
@tomberek:matrix.orgtomberek It helps unify the various run/shell/develop sub commands. 03:11:06
@alice:usamimi.networkalice joined the room.07:12:41
@balsoft:balsoft.rubalsoft
In reply to @colemickens:matrix.org
like I get it, but it doesn't make any sense for a nix repo like nixpkgs, what're ya gonna do, make a flakes.apps.X entry for every bin/app in nixpkgs?
No, it falls back to bin/${pname} for binary name by default, so e.g. nix run nixpkgs#hello works
07:31:54
@balsoft:balsoft.rubalsoftI agree tha it's not very useful :/07:32:04
@roosemberth:orbstheorem.chRoosI personally disagree, I don't see it as a docker replacement, but rather as a flatpak alternative.07:49:21
@roosemberth:orbstheorem.chRoos IMHO, I don't think we need an entry for all of the binaries, just the 'main' binary of the package (where it makes sense). For instance, if I want to "run" package redshift-wlr, I would like it to run the redshift binary inside, if I wanted to access to any of the other binaries, I'd enter a shell. 07:52:34
@balsoft:balsoft.rubalsoft
In reply to @roosemberth:orbstheorem.ch
IMHO, I don't think we need an entry for all of the binaries, just the 'main' binary of the package (where it makes sense). For instance, if I want to "run" package redshift-wlr, I would like it to run the redshift binary inside, if I wanted to access to any of the other binaries, I'd enter a shell.
That's still a lot of app entries
07:53:32
@roosemberth:orbstheorem.chRoosYes, but I don't think that's a flakes problem, I think that's a nixpkgs problem.07:53:59
@colemickens:matrix.orgcolemickens 🏳️‍🌈Doesn't nix shell pull the pkgs deps in too though?08:44:26
@colemickens:matrix.orgcolemickens 🏳️‍🌈isn't that like the whole issue08:44:40
@colemickens:matrix.orgcolemickens 🏳️‍🌈 * isn't that like the whole issue - why people try to use run and then wind up resorting to nix shell -c...08:45:08
@deeunderscore:feneas.orgDee There's already meta.mainProgram that you can use in Nixpkgs, and Nix actually checks that 09:10:21
@tomberek:matrix.orgtomberekThe new ‘nix shell’ does not pull in build deps.15:43:19
@figsoda:matrix.orgfigsoda From my understanding, nix-shell becomes nix develop, nix-shell -p becomes nix shell, and nix run a special case for nix shell -c 17:30:50
@figsoda:matrix.orgfigsoda * From my understanding, nix-shell becomes nix develop, nix-shell -p becomes nix shell, and nix run is a special case for nix shell -c 17:32:03
@mars:jupiterbroadcasting.commars joined the room.19:02:55
@tomberek:matrix.orgtomberek figsoda: roughly yes, but there are lots of edge cases and slight differences. Getting that design right and making decisions have been difficult. 20:23:48
@colemickens:matrix.orgcolemickens 🏳️‍🌈 David Arnold (blaggacao): did you figure out a way to expose/use multiple devShells from a flake? 23:48:34
@colemickens:matrix.orgcolemickens 🏳️‍🌈 I guess this works: nix develop .#devShell2.x86_64-linux 23:49:38
@colemickens:matrix.orgcolemickens 🏳️‍🌈kind of annoying that it doesn't get autocoerced from .#devShell2 in that scenario thoug23:49:50
@blaggacao:matrix.orgDavid Arnold (blaggacao) I think there now is self.devShells so I guess, nix develop python should do self.devShells....python 23:50:05
@blaggacao:matrix.orgDavid Arnold (blaggacao)Not tested, just a bookmark in my head.23:50:55
@colemickens:matrix.orgcolemickens 🏳️‍🌈okay, I'll add a note to try that23:51:19
@blaggacao:matrix.orgDavid Arnold (blaggacao)Tell me if it works 🙂23:51:19
18 Oct 2021
@colemickens:matrix.orgcolemickens 🏳️‍🌈 David Arnold (blaggacao): aight, it's outputs.devShell + outputs.devShells.foo 00:15:17
@colemickens:matrix.orgcolemickens 🏳️‍🌈I think it ought to be outputs.devShells.{default,foo,bar...} but whatever00:15:43
@colemickens:matrix.orgcolemickens 🏳️‍🌈this is more than fine00:15:47
@colemickens:matrix.orgcolemickens 🏳️‍🌈 David Arnold (blaggacao): nix develop github:colemickens/nixcfg#devenv => https://github.com/cole-mickens/nixcfg/blob/ac2b89e9715c1daa730fda9308e0ed1abe941392/flake.nix#L118 00:16:41

Show newer messages


Back to Room ListRoom Version: 6