00:42
NinjaTrappeur has quit [Ping timeout: 256 seconds]
00:44
NinjaTrappeur has joined #nixos-dev
01:49
NoOneRules has joined #nixos-dev
02:35
NoOneRules has quit [Quit: Page closed]
02:45
orivej has quit [Ping timeout: 240 seconds]
02:47
goibhniu has quit [Ping timeout: 240 seconds]
02:49
lassulus_ has joined #nixos-dev
02:51
lassulus has quit [Ping timeout: 240 seconds]
02:51
lassulus_ is now known as lassulus
09:44
orivej has joined #nixos-dev
10:35
vcunat has joined #nixos-dev
11:51
<
LnL >
is there a way to figure out the correct nix-build command for a file without building a lookup table first?
13:02
pie__ has quit [Ping timeout: 240 seconds]
13:07
jtojnar has quit [Remote host closed the connection]
13:08
jtojnar has joined #nixos-dev
13:20
pie__ has joined #nixos-dev
15:02
<
Profpatsch >
LnL: you mean the correct attribute to build for a file?
15:02
<
Profpatsch >
That’s very ill-defined.
15:03
<
Profpatsch >
As in: There could be multiple attributes referencing different parts of a file.
15:03
<
Profpatsch >
I think you can only go by convention.
15:05
<
Profpatsch >
Alternatively by imposing some structure, like saying each file name has to match the attribute name minus .nix for example.
15:05
<
LnL >
I can handle that with the index
15:06
<
LnL >
only edgecase are packages with multiple entrypoints (eg. overrides)
15:11
<
LnL >
what I'm trying to do is find nix-build ./. -A hello, given pkgs/applications/misc/hello/default.nix:15
15:11
<
vcunat >
the other way around it's easier (attribute name -> expression path)
15:13
<
vcunat >
I don't expect you can do this direction without some kind of indexing
15:14
<
LnL >
yeah, so I'm going to use that to build the index
15:14
<
LnL >
but was hoping for a way to avoid that since it introduces state and takes ~20s to calculate for nixpkgs
15:18
<
Profpatsch >
LnL: What is the actual task you are trying to solve?
15:18
<
LnL >
guess I could start with the naive implementation and worry about caching later
15:18
<
Profpatsch >
Because reverse direction lookup is a hack at best.
15:18
<
LnL >
hmm? so nix edit is also a hack?
15:18
<
Profpatsch >
And everything but universal and bug-free.
15:19
<
Profpatsch >
LnL: Nix-edit goes by the file name of the position of the `derivation` symbol.
15:19
<
Profpatsch >
Which is quite possible from inside the nix parser library.
15:20
<
Profpatsch >
Or maybe the `name` attribute, I don’t remember.
15:21
<
Profpatsch >
LnL: Ah, then it uses a builtin to add the path to the current file to the meta attribute?
15:21
<
LnL >
I'm using the same information, just in reverse. And I'm fine with failing if it's ambiguous
15:21
<
Profpatsch >
Well, it’s not really information in reverse.
15:21
<
Profpatsch >
It’s just guesswork.
15:22
<
Profpatsch >
You’d need a way to add attribute path information to derivations.
15:23
<
Profpatsch >
Hm, but even then that’s a multiset of paths, an inversion of symbolic information.
15:23
<
LnL >
then you'd have to instantiate all of nixpkgs to use it
15:23
<
Profpatsch >
Attributes are on a different semantic level.
15:24
<
Profpatsch >
The file annotation just works because it’s appended on the same semantic level (evaluation of nix expression), cached inside the next level (drv files) and then read by the nix tool.
15:25
<
Profpatsch >
*nix tooling
15:34
jtojnar has quit [Quit: jtojnar]
15:34
jtojnar has joined #nixos-dev
15:40
<
{^_^} >
#39683 (by matthewbauer, closed): Remove uses of libOnly
15:51
<
domenkozar >
peti: do we have a fix for MAX_ARG on horizon?
15:57
<
{^_^} >
#43169 (by samueldr, open): Fixes `stripDirs` use after signature change
18:15
pie__ has quit [Ping timeout: 260 seconds]
18:44
pie_ has joined #nixos-dev
18:48
NinjaTrappeur has quit [Quit: WeeChat 2.1]
18:58
<
LnL >
domenkozar: did you find the commit(s) that increased the flag count?
19:45
tv has quit [Ping timeout: 245 seconds]
19:46
goibhniu has joined #nixos-dev
19:48
pie_ has quit [Ping timeout: 265 seconds]
19:58
ixxie has joined #nixos-dev
20:03
pie_ has joined #nixos-dev
20:09
ixxie has quit [Ping timeout: 248 seconds]
20:27
vcunat has quit [Quit: Leaving.]
21:12
pie__ has joined #nixos-dev
21:13
pie_ has quit [Read error: Connection reset by peer]
22:11
goibhniu has quit [Ping timeout: 244 seconds]
22:30
goibhniu has joined #nixos-dev
22:48
pie__ has quit [Ping timeout: 240 seconds]
22:53
pie__ has joined #nixos-dev