00:08
bqv has joined #nixos-emacs
00:10
<
bqv >
adisbladis: do i remember correctly that it's your desire to eventually make it such that emacs can only be used with emacsWithPackages?
00:10
<
bqv >
cause if so, why? (just curious)
00:10
<
bqv >
I quite like being able to install an emacs package ad-hoc and not have to restart my weeklong emacs session to add a package
00:11
<
bqv >
seems that would be fundamentally impossible with emacsWithPackages, no?
00:18
<
bqv >
just came to mind because the nativeComp PR obviously doesn't work for me, but I don't see why theoretically it couldn't
00:21
<
adisbladis >
bqv: I have thought about not exposing emacsPackages as separate sets
00:21
<
adisbladis >
Because it's very easy to "hold it wrong"
00:22
johnw has joined #nixos-emacs
00:22
<
adisbladis >
Imagine something like:
00:22
<
adisbladis >
callPackage ({ elpaBuild, emacs }: elpaBuild { buildInputs = [ emacs ]; }) { emacs = emacsGcc; }
00:23
<
adisbladis >
Gah, this example was incomplete...
00:23
<
adisbladis >
callPackage ({ elpaBuild, emacs, emacsPackages }: elpaBuild { buildInputs = [ emacs emacsPackages.s ]; }) { emacs = emacsGcc; }
00:23
<
adisbladis >
It's quite ambigious what's going on here
00:23
<
adisbladis >
Which emacs are you actually building with?
00:24
<
adisbladis >
bqv: This doesn't mean that I want to completely remove the usecase though
00:24
<
adisbladis >
I think a fix might be as easy as tacking on the package set as a passthru on the emacs package
00:25
<
adisbladis >
And then the same example would look like
00:25
<
adisbladis >
callPackage ({ emacs }: emacs.pkgs.elpaBuild { buildInputs = [ emacs emacs.pkgs.s ]; }) { emacs = emacsGcc; }
00:25
<
adisbladis >
Much less risk to "hold it wrong"
00:26
<
adisbladis >
bqv: ^
00:26
<
bqv >
Understandable
00:26
<
bqv >
I like that outcome too
00:29
<
adisbladis >
I just realised it's also much more "symmetrical" in terms of what derivations/sets that exist
00:30
<
adisbladis >
Because we don't have package sets for the -nox packages
00:30
<
adisbladis >
I need to think a bit about what implications this has for overrides
00:56
neeasade has quit [Ping timeout: 264 seconds]
01:02
{^_^} has joined #nixos-emacs
01:05
JJJollyjim has joined #nixos-emacs
01:05
<
JJJollyjim >
i'm getting "builtins.storePath' is not allowed in pure evaluation mode" when I try to add the emacs overlay to my configuration using flakes
01:05
<
JJJollyjim >
(with nixpkgs.overlays = [emacsFlake.overlay];, inside the system config)
01:06
<
adisbladis >
Hm, I just greped the overlay and we don't reference builtins.storePath anywhere?
01:06
<
adisbladis >
Could you try with --show-trace and see where it's happening?
01:07
<
JJJollyjim >
storepath also isn't in any of the code snippets in the backtrace lol
01:07
<
JJJollyjim >
oh hold on
01:07
<
JJJollyjim >
i just commented out the flake and it's still happening haha
01:09
<
adisbladis >
Are you sure that stack trace is complete? :S
01:09
<
adisbladis >
I'm not doubting you.. It's just.. Odd..
01:09
<
JJJollyjim >
it's very odd
01:10
<
JJJollyjim >
I was doing this in flake.nix, to pass the emacs flake to the evaluation of the main config file:
01:10
<
JJJollyjim >
modules = [ ({ pkgs, ... } @ args: import ./configuration.nix (args // { inherit emacs; })) ];
01:11
<
JJJollyjim >
when I remove `emacs` from the destructuring parameters in configuration.nix, it works
01:11
<
JJJollyjim >
when emacs is present, it fails as above
01:12
<
adisbladis >
I'm not super familiar with flakes, but that looks wrong to me?
01:13
<
JJJollyjim >
I don't think that's a flake thing specifically, this is inside a standard call to nixpkgs.lib.nixosSystem {
01:13
<
adisbladis >
I don't think you need to manually pass emacs to modules at all, it's implemented as an overlay
01:13
<
JJJollyjim >
yeah, but i was adding it to nixpkgs.overlays inside configuration.nix
01:13
<
JJJollyjim >
and needed to pass it to that
01:14
<
JJJollyjim >
(have now switched to adding it as a tiny lambda module in flake.nix, and it works)
01:14
<
JJJollyjim >
(emacs there is the flake containing the overlay, not the emacs package itself)
01:14
<
adisbladis >
(I'm mostly speculating when it comes to flakes)
01:15
<
JJJollyjim >
am getting no benefit and only pain and will switch back soon i think lol
01:15
<
JJJollyjim >
niv with a shittier ui
01:15
<
JJJollyjim >
i might not be the intended audience i guess
01:21
rajivr has joined #nixos-emacs
01:34
<
bqv >
I find the ux much more appealing than anything I see niv offer
01:35
<
bqv >
Flakes are about the thing I like most of nix
01:42
<
aterius >
Also prefer flakes, niv has broken on me on nix updates far more often and is slower to update dependencies
02:42
evanjs has quit [Ping timeout: 256 seconds]
02:47
neeasade has joined #nixos-emacs
05:35
neeasade has quit [Ping timeout: 260 seconds]
06:24
cole-h has quit [Ping timeout: 264 seconds]
08:27
reemerging has joined #nixos-emacs
09:29
Edward- has joined #nixos-emacs
09:30
Edward- has quit [Remote host closed the connection]
12:31
Edward- has joined #nixos-emacs
12:37
cosimone has joined #nixos-emacs
12:46
cosimone has quit [Remote host closed the connection]
12:47
cosimone has joined #nixos-emacs
12:48
Edward- has quit [Ping timeout: 268 seconds]
12:51
cosimone has quit [Remote host closed the connection]
12:52
cosimone has joined #nixos-emacs
12:57
cosimone has quit [Remote host closed the connection]
13:48
<
{^_^} >
#107152 (by adisbladis, 13 seconds ago, open): emacsPackages*: Move to emacs*.pkgs
13:48
<
adisbladis >
Still needs a relase note
13:50
<
adisbladis >
I'm gonna mark it as a draft so no one merges it prematurely
13:50
<
adisbladis >
I'd love some feedback
13:53
<
qyliss >
adisbladis: I think I read somewhere that Fridh regrets doing this for Python
13:53
<
qyliss >
so it might be worth asking him
13:55
<
adisbladis >
qyliss: As opposed to separate sets for python37Packages, python38Packages and so on?
13:55
<
bqv >
I imagine because it means theres two paths, and the old is hard to deprecate
13:55
<
adisbladis >
Tbh I was thinking to do the same pattern for python
13:55
<
adisbladis >
The separate sets exposed like that is a huge error in design
13:56
<
adisbladis >
We've had quite a few cases of accidentally mixed python interpreters in nixpkgs
13:56
<
adisbladis >
Because of that
13:56
<
adisbladis >
Because the caller needs to take care to pass compatible arguments
13:59
<
qyliss >
adisbladis: yeah
15:39
evanjs has joined #nixos-emacs
16:37
reemerging has quit [Ping timeout: 246 seconds]
16:46
cole-h has joined #nixos-emacs
16:47
cosimone has joined #nixos-emacs
17:53
rajivr has quit [Quit: Connection closed for inactivity]
18:22
cosimone_ has joined #nixos-emacs
18:25
cosimone has quit [Ping timeout: 268 seconds]
18:25
cosimone_ is now known as cosimone
19:44
cosimone has quit [Quit: cosimone]
20:15
cole-h has quit [Quit: Goodbye]
20:19
cosimone has joined #nixos-emacs
21:29
cosimone has quit [Read error: Connection reset by peer]
21:30
cosimone has joined #nixos-emacs
21:57
cosimone_ has joined #nixos-emacs
21:59
cosimone has quit [Ping timeout: 240 seconds]
21:59
cosimone_ is now known as cosimone
22:02
selfsymmetric-mu has quit [Remote host closed the connection]
22:36
cosimone has quit [Quit: cosimone]